Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response headers in error #69

Closed
m-szyszka opened this issue Jul 17, 2020 · 3 comments
Closed

response headers in error #69

m-szyszka opened this issue Jul 17, 2020 · 3 comments
Assignees

Comments

@m-szyszka
Copy link

Hi!
I want to implement retry strategy for dynamics calls and noticed that there are no dynamics headers in error response. To be more specific, I want to retry call in case of HTTP Status 429 (Too Many Requests). I can see "status" field in "error" object, but for 429 Dynamics returns also standard Retry-After header, which is missing.
Is it possible to add it in current 1.X version?

@AleksandrRogov
Copy link
Owner

hi @m-szyszka , sure, I will find a way to add headers to error object.

@AleksandrRogov
Copy link
Owner

@m-szyszka , I've released a new patch 1.6.7 with a requested change. You can access headers through error.headers property. Please let me know if it solves the problem you have.
Thanks

@m-szyszka
Copy link
Author

I checked and it looks fine, thanks for the quick response!

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

No branches or pull requests

2 participants