<#1144 fix: filter transient network/timeout error...
# flyte-github
a
#1144 fix: filter transient network/timeout errors from Sentry Pull request opened by EngHabu Summary The
flyte deploy
/
flyte run
upload path (
flyte.remote._data
) reaches the cluster service (
SelectCluster
) and then `PUT`s the bundle to a signed object-store URL. Both legs ride the user's network, so flaky links, VPN drops, refused/reset connections and request timeouts surface as
RuntimeSystemError
wrappers whose cause chain terminates in a timeout or transport-level connection error. These are user-environment / transient-infra failures, not SDK crashes, but they currently leak into Sentry (the
flyte-sdk
crash-reporting project) as if they were SDK bugs — and they're some of the noisiest issues there. This follows the established
flyte/_sentry.py
pattern (#1039, #1052, #1056, #1078, #1094, #1109, #1133, #1137) of classifying non-crash errors and skipping them via `_is_user_error`'s cause-chain walk. What it filters New
_is_transient_network_error
, walked over the existing cause chain: • builtin
TimeoutError
(asyncio/socket timeouts) and
ConnectionError
(refused / reset / aborted / broken-pipe) •
httpx.TimeoutException
/
httpx.NetworkError
— the signed-URL PUT transport errors (
ConnectTimeout
,
ReadTimeout
,
ReadError
,
WriteError
,
ConnectError
,
PoolTimeout
, …) •
httpx.RemoteProtocolError
— "Server disconnected without sending a response", the object store hanging up mid-PUT (FLYTE-SDK-4M) Transient
ConnectError
status codes (
DEADLINE_EXCEEDED
/
UNAVAILABLE
) are already handled by
_is_user_actionable_connect_error
(merged in #1137), so they are not duplicated here.
INTERNAL
/
UNKNOWN
ConnectError codes are deliberately left reported — those can indicate real backend bugs worth tracking (a covering test asserts this). Sentry issues addressed •
fixes FLYTE-SDK-29
— SelectCluster
TimeoutError
("Request timed out") •
fixes FLYTE-SDK-47
— builtin
ConnectionError
(connection refused) •
fixes FLYTE-SDK-3W
—
httpx.WriteError
(connection reset by peer) •
fixes FLYTE-SDK-36
—
httpx.ReadError
during the signed-URL upload •
fixes FLYTE-SDK-4M
—
httpx.RemoteProtocolError
(server disconnected mid-PUT) •
fixes FLYTE-SDK-4G
— SelectCluster
TimeoutError
("operation timed out") Tests
tests/flyte/test_sentry.py
— covers builtin timeout/connection errors, the httpx transport family (incl.
RemoteProtocolError
), and asserts
ConnectError(INTERNAL)
still reaches Sentry. 🤖 Generated with Claude Code flyteorg/flyte-sdk