Update Request Retry docs for the 4.x HTTP protocol - #3653
Open
spmallette wants to merge 1 commit into
Open
spmallette wants to merge 1 commit into
spmallette wants to merge 1 commit into
Conversation
The Request Retry section still described the pre-4.x mechanism, telling readers to detect a transient error via a ResponseStatusCode of SERVER_ERROR_TEMPORARY (code 596). Those constructs no longer exist after the move to the HTTP protocol. Describe how a transient error surfaces under HTTP: an HTTP 500 response whose body carries an "exception" field set to "ServerEvaluationException", raised when a server-side provider throws an exception implementing TemporaryException. Add a Java driver example that inspects ResponseException.getRemoteException() to branch into retry logic, and note that raw HTTP clients read the same field from the response body. Assisted-by: Kiro:claude-opus-4.8
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3653 +/- ##
============================================
+ Coverage 76.35% 76.72% +0.36%
- Complexity 13424 14340 +916
============================================
Files 1012 1037 +25
Lines 60341 64761 +4420
Branches 7075 7695 +620
============================================
+ Hits 46076 49690 +3614
- Misses 11548 11976 +428
- Partials 2717 3095 +378 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The Request Retry section still described the pre-4.x mechanism, telling readers to detect a transient error via a ResponseStatusCode of SERVER_ERROR_TEMPORARY (code 596). Those constructs no longer exist after the move to the HTTP protocol.
Describe how a transient error surfaces under HTTP: an HTTP 500 response whose body carries an "exception" field set to "ServerEvaluationException", raised when a server-side provider throws an exception implementing TemporaryException. Add a Java driver example that inspects ResponseException.getRemoteException() to branch into retry logic, and note that raw HTTP clients read the same field from the response body.