fix: retry generic transient upstream errors - #14
Merged
Conversation
There was a problem hiding this comment.
Important
The generic 500 retry path still does not match the error reported by the issue, so this PR should not merge until the call-site contract is covered.
Reviewed changes This review covers the retry classification update and its release and regression-test coverage.
- Generic transient 500 classification Extends the retry predicate to recognize the gateway's exact
Internal server errortext for HTTP 500 responses. - Release and regression coverage Adds a patch changeset and a unit assertion for the new classification.
GPT Luna | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes This incremental review covers the follow-up that aligns generic 500 classification with the actual formatted provider error.
- Matched formatted upstream errors Updated the transient 500 predicate to recognize the
responseErrormessage shape while retaining terminal handling for unrelated 500 details. - Added regression coverage Pinned the exact issue-shaped error message so the prior call-site mismatch would fail the test.
GPT Luna | 𝕏
This was
linked to
issues
Aug 22, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
500 Internal server errorresponse with the existing bounded backoffIssue status
Verification
npm test(71 passing)npm run package