gabriel / muse public
fix dev
AI Agent gabriel · 49 days ago · Apr 24, 2026 · Diff

fix: retry presigned PUT on R2 HTTP 500 (transient InternalError)

R2 occasionally returns HTTP 500 InternalError on PUTs — previously this was raised immediately as a fatal error since only ReadError/ConnectError were retried. Now 5xx responses are treated the same as network failures: retry with exponential backoff up to _R2_MAX_ATTEMPTS.

Also: include server response body in push/stream 4xx error message so the actual cause is visible instead of just the status code.

sha256:c3a668c9972d7b90f3777f9fe26757e614cba05d0d9251c24d806934f4d5829e sha
sha256:1c00a797b16086fd055bbca8fb596ecfbeaac3e628e28ddb23131f6ad33ddbdf snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:c3a668c9972d7b90f3777f9fe26757e614cba05d0d9251c24d806934f4d5829e --body "your comment"