You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2760aa6
Browse filesBrowse the repository at this point in the historyBrowse files
fix: Classify and retry failures while reading a streamed error body (#1020)
Before raising `ApifyApiError`, `_make_request` buffers the response so
a streamed error body reaches the exception. That read sat outside the
`try` block that classifies an attempt, so a failure there escaped the
retry policy entirely: a non-retryable failure was retried through the
whole backoff, and the response was left open.
The read now goes through the same classification as a failed send —
retried when it is a transient transport failure, surfaced immediately
when it is not — and the response is closed before the exception
propagates.
Split out of #1006 and re-targeted at `master`, so the retry fixes can
ship in a patch release ahead of the pipeline refactor in #1011.
*✍️ Drafted by Claude Code*
0 commit comments