Recent searches
No recent searches
Retrieve Retry-After on 429.
Posted Aug 24, 2022
Hi all !
I'm trying in my API calls to handle limits.
And so on a 429 return code, I try to retrieve the "Retry-After" information
As mentioned in the help: https://developer.zendesk.com/api-reference/introduction/rate-limits/#monitoring-your-request-activity
Unfortunately, the returned header does not contain this information:
{'User-Agent': 'python-requests/2.21.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-type': 'application/json', 'Content-Length': '134', 'Authorization': 'Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}
And the returned json doesn't contain anything either.
Does anyone know where can i gets it?
Thanks !
Friendships,
Serge.
0
2
2 comments
Erica Girges
I'm sorry that you're having difficulty retrieving the "Retry-After" header with the given time you would need to wait.
Would you be able to share a screenshot of the 429 response body as well? This might be able to help us better identify this issue.
Best,
Erica
0
Serge BERTAINA DUBOIS
Hi Ercia,
Thank's for help.
Here is the returned body.
I have hidden the email and the key.
I don't retrieve any JSON.
And the header is always the same.
friendships,
Serge.
0