<#1057 fix: retry upload on httpx.ReadError and ot...
# flyte-github
a
#1057 fix: retry upload on httpx.ReadError and other network errors Pull request opened by EngHabu Summary •
_upload_with_retry
only catches
httpx.TimeoutException
and
httpx.ConnectError
. A transient
httpx.ReadError
(e.g. "connection reset by peer" mid-upload) bypasses the retry loop entirely and surfaces as an unhandled crash. • Broaden the catch to
httpx.NetworkError
, which is the umbrella for
ConnectError
,
ReadError
,
WriteError
, and
CloseError
— all transient transport-level failures that deserve the same backoff/retry treatment timeouts already get. Sentry issues Fixes FLYTE-SDK-9 (
ReadError
during signed-URL upload, no retry) Test plan • New
test_upload_retries_on_read_error
integration test • Existing
tests/flyte/remote/test_upload_retry.py
suite still passes flyteorg/flyte-sdk