Accessing response (or response headers) from caught exception #258
ethemguner
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Hi, sounds good. Please add a PR! Thanks! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm using python-amazon-sp-api for a while to integrate to SP-API. So, there was a problem about rate limit and I needed Request ID and request timestamp to open ticket to Amazon Developer Support. But, when I caught the error, I wasn't able to get response or response headers from exception to get request id & timestamp.
I think It'd be good getting headers from exception. It doesn't has to be response/headers itself though, x-amzn-RequestId and Date would be enough.
Also some of users may want to get rate limit, too.
So, I want to discuss.
I already added headers to exceptions, I can open a pull request.
An example of usage:
Beta Was this translation helpful? Give feedback.
All reactions