acoustic-carpenter-78188
07/28/2026, 4:07 PMSelectCluster, CreateRun, ...) surface transport failures as pyqwest.ReadError / WriteError / StreamError rather than the httpx equivalents that _is_transient_network_error already filters.
FLYTE-SDK-6H (17 events) is an HTTP/2 stream reset mid-body — ConnectError: Error reading content with pyqwest.StreamError("Error reading content") as its cause, raised out of connectrpc/_client_async.py:_send_request_bidi_stream through the auth/retry interceptors. Every StreamErrorCode (PROTOCOL_ERROR, STREAM_CLOSED, REFUSED_STREAM, CANCEL, ...) describes a connection/protocol condition between client and server, never an SDK bug — the same class of failure as httpx.RemoteProtocolError, which is already filtered.
Changes
• Add pyqwest.ReadError, pyqwest.WriteError, pyqwest.StreamError to _is_transient_network_error. They are plain Exception subclasses (not OSError), so they need an explicit isinstance check; the import is guarded like the existing httpx one since pyqwest is a transitive dependency.
• 3 tests: the two socket-level errors via the standard upload-wrapper helper, plus one reproducing 6H's exact RuntimeSystemError <- RuntimeError <- ConnectError <- StreamError chain.
Verified the new tests fail without the filter change and pass with it. 41/41 test_sentry.py pass.
Connect-level `INTERNAL`/`UNKNOWN` codes remain unfiltered — this only covers transport-layer errors.
fixes FLYTE-SDK-6H
flyteorg/flyte-sdkacoustic-carpenter-78188
07/29/2026, 1:32 AM