-
Notifications
You must be signed in to change notification settings - Fork 753
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
Issue with Finance API Quota and TooManyRequests Error When Fetching Financial Events #4448
Comments
@ssaqibshirazi I believe you are referring to listFinancialEvents operation to get the financial events. The rate limit for this operation (and other operations) is defined in the API reference. SP-API does not provide a Retry-After header, but x-amzn-RateLimit-Limit header is provided in the response that also provides the operation's rate limits per account-application pair. To better understand how rate limits work and strategies on how to handle rate limiting, please review these resources,
Specifically for finances API, you can also review the different tutorials provided in the use case guide and see if you can use financial event groups to potentially reduce the volume of results and pages returned. Thanks |
We are also seeing this. It started showing up for us December 3rd. We’ve made no code changes and all of a sudden Amazon is throttling at an extreme rate. The health dashboard was showing red for several days, but now shows green. It is absolutely still broken. |
Can confirm I experience the same issue. We did not make any changes to the code. Happening for a couple weeks already. |
We finally got our issue resolved, but I'm not happy with the way this works now. After you make your first request and you get a next token, when you go to make the request with that token, if you get "Invalid Input", try the request again with a "MaxResultsPerPage" of 50. If that fails, try again with 25, if that fails try again with 1. If any of those succeed, go back to not passing the parameter so as you don't spend all day pulling 1 result at a time. This appears to be Amazon making an undocumented change on how large a result can be (and of course not telling us that's the issue in the error). Note this does not fix the "too many requests", but does seem to solve the "invalid input". |
We are also seeing the same issue with the ListFinancialEvents call since the last 6 days now. Did anyone find a solution to this? Thanks, |
We are facing the same issue, it started around Black Friday, any solution? we are constantly getting hit by 429s. @MeenaAmz we didn't change anything on our end, we are following all the rate limit rules, something changed on amazons side and it started rate limiting way too strict, we cant get the full data for a settlement. |
Thanks for bringing this up. I'm following up with the backend team on this and will get back once I get an update. Thanks |
I have enhanced my code with the following improvements:
These changes helped me resolve the 429 Too Many Requests issue. I hope this approach helps you resolve similar issues on your end. Please let me know if it works for you.
|
Hello Everyone, Thanks for your patience. The throttling issue has been resolved and you should not see increased level of throttling anymore. Please validate and open a support case if you still see issues. Thanks |
Thanks @MeenaAmz I can confirm that it is much better now. |
We are encountering issues while using the Amazon Selling Partner Finance API for retrieving financial events. Despite adhering to the provided rate limits, the API frequently returns a TooManyRequests (429) error. The issue occurs specifically with the endpoint:
https://sellingpartnerapi-na.amazon.com/finances/v0/financialEvents?MaxResultsPerPage=100&PostedAfter=2024-12-12&PostedBefore=2024-12-13
Steps to Reproduce:
Observed Behavior:
Expected Behavior:
The API should allow requests within the rate limit guidelines.
Clear documentation or headers (like Retry-After) should be provided for handling rate limits effectively.
Additional Context:
. API requests include MaxResultsPerPage set to 100.
. Retrying the request after a delay doesn't consistently resolve the issue.
. This problem started occurring as of December 10, 2024.
Please provide assistance or clarification on:
Looking forward to your response. Thank you!
The text was updated successfully, but these errors were encountered: