-
Notifications
You must be signed in to change notification settings - Fork 149
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
Sync stops with error: "[script.trakt] trakt.interfaces.base: Request failed: "POST /sync/history" - 429: "Rate limit exceeded" (Rate Limit Exceeded)" #619
Comments
Hi, 6 month without any response :-( Is the Trakt Addon still in development? I would like to know if I can use Trakt.TV in the future anymore or if I will stuck here with not possible to update my trait.tv status? Maybe the solution can be found in the trakt.tv API information: https://trakt.docs.apiary.io/#introduction/required-headers "All API methods are rate limited. A 429 HTTP status code is returned when the limit has been exceeded. Check the headers for detailed info, then try your API call in Retry-After seconds." Thanks and best regards... |
This would be needed to be implemented in https://github.com/fuzeman/trakt.py/ |
Hi, thanks for your response. I have done a dirty Fix in your script... I found out, that the rate limit was violated between to API requests doing different things, time between both calls <1s... So I added a 1 second "time.sleep(1)" which solved the actual issue and my collection can be synced again... but I am not sure where this needs to be originally be fixed... As you can see here that there are 4 POST API calls in 1 second, where 3 of them violate the API restrictions by trakt.tv:
From my point of view the issue is not an mass update issue, but a fast POST API issue... Perhaps you can take a look on it and maybe find a fix for it, where you can wait 1 second between every POST API call? Many thanks in advance :-) |
As stated, that should be done in trakt.py (both projects have been around before trakt introduced api limits) |
Puh... the linked issue is older than 3 years, without any progress :-( I think the chances to get fixed are very low, maybe time to look for an alternative for trakt.tv... |
I ran into this issue as well, installing the plugin on an existing Kodi installation and trying to sync old history. I was also able to fix it with a sleep call. Specifically, in |
Hello and thank you for this great Kodi plugin/script! I have run into the same rate limiting issue/error. For me it seems to be due to many show updates, which eventually clear itself if you run it multiple times. Sometimes, updates of episodes that aren't tracked on tmdb (which keep trying to update) also cause issue (or "blockages"). Anyhow the time.sleep(1) hack did make this more consistent and reliable for me. However, as mentioned it is an improper fix and a proper implementation should be made upstream in the trakt api library being used. I did notice a different trakt api python interface had a solution: moogar0880/PyTrakt#138 I was hoping to look at this more, unfortunately I don't have the time. I would assume implementing a new trakt api interface would be more time consuming and problematic. Just thought I would share my experience with this. Thanks again for your efforts and support! |
Looking at that repo, it also seems pretty dead, so not sure if that would improve anything |
Expected Behavior
The Trak.tv add-on should respect the defined API usage rules defined by trakt.tv here: trakt/api-help#220
Current Behavior
The Trakt.tv add-on does not respect the boundaries and receives a "[script.trakt] trakt.interfaces.base: Request failed: "POST /sync/history" - 429: "Rate limit exceeded" (Rate Limit Exceeded)" Error.
This issue is not shown in UI, so that the user thinks that everything is fine, but now there are many information missing in trakt.tv.
Possible Solution
I have some ideas to implement:
Steps to Reproduce (for bugs)
Context
Actually my Kodi library cannot be synced with trakt, only single changes are transported to trakt.tv.
Your Environment
The text was updated successfully, but these errors were encountered: