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

image avatar

Erica Girges

Zendesk Developer Advocacy

Hi Serge,
 
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


Hi Ercia,

Thank's for help.

Here is the returned body.

You have exceeded the rate limit for updating a single unique user. user email: xxxxxxxxx@xxxxxx  id:  external_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have hidden the email and the key.

I don't retrieve any JSON.
And the header is always the same.

friendships,

Serge.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post