Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Saving request payload for retry purpose #17

Closed
wants to merge 2 commits into from
Closed

Saving request payload for retry purpose #17

wants to merge 2 commits into from

Conversation

manvil
Copy link

@manvil manvil commented Jan 22, 2014

@tstachl

I have observed that when the API hits the rate limit for the current time slice the API throws Invalid JSON error.
Upon deeper investigation I found that the issue is because when retry is attempted after rate limit has been hit, the request which is sent has the response payload of the first API call. This probably causes issues with the Desk server and hence a BadRequest Error is raised. My change is pretty simple where we store the original request env and upon retry the saved env is used rather than the request modified env.

Regards,
Manvil

@manvil manvil closed this Jan 22, 2014
@manvil manvil deleted the retry_correction branch January 22, 2014 01:48
@manvil
Copy link
Author

manvil commented Jan 22, 2014

I will re-open a new PR to the master branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant