Skip to content

fix: honor RetryInfo.retryDelay for 429 RESOURCE_EXHAUSTED#2114

Open
hermann-o wants to merge 1 commit intogoogleapis:mainfrom
hermann-o:fix/retry-delay-issue-1875
Open

fix: honor RetryInfo.retryDelay for 429 RESOURCE_EXHAUSTED#2114
hermann-o wants to merge 1 commit intogoogleapis:mainfrom
hermann-o:fix/retry-delay-issue-1875

Conversation

@hermann-o
Copy link

Fix and test for issue: #1875
Adding code to extract retryDelay from error details in case:
code == 429
status == "RESOURCE_EXHAUSTED"
and wait as suggested.

In fact we wait 1 sec longer as indicated by google.rpc.RetryInfo, given this sample

[429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded [...] Please retry in 58.934310785s.', 'status': 'RESOURCE_EXHAUSTED', 'details': [...] '@type': 'type.googleapis.com/google.rpc.RetryInfo', 'retryDelay': '58s'}]}}.)

@hermann-o hermann-o force-pushed the fix/retry-delay-issue-1875 branch 2 times, most recently from 795a647 to 3c77703 Compare February 28, 2026 09:33
@hermann-o hermann-o changed the title Handle retryDelay for 429 errors fix: honor RetryInfo.retryDelay for 429 RESOURCE_EXHAUSTED Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant