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

Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv #208

Open
dukestraykker opened this issue Mar 9, 2023 · 1 comment

Comments

@dukestraykker
Copy link

I am trying to sync a new jellyfin 10.8.9 installation on windows with trakt.tv. I have installed trakt.tv plugin version 23.0.0.0 and it shows active and user is authorized. When i attempt to run the scheduled task "Import watched states and playback progress from trakt.tv" it stalls at 0.0%. I am seeing this record in the logs constantly:

2023-03-09 00:50:00.016 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 1s

2023-03-09 12:59:32.862 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 19s

2023-03-09 12:59:52.138 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 8s

2023-03-09 14:04:59.888 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 1s

2023-03-09 14:14:38.411 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Connectivity error while communicating with trakt.tv - waiting 30s

2023-03-09 14:24:50.304 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 7s

2023-03-09 14:24:57.568 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 1s

2023-03-09 14:24:58.845 +13:00 | DBG | 102 | Trakt.Api.TraktApi: Too many requests while communicating with trakt.tv - waiting 2s

2023-03-09 14:25:00.857 +13:00 | ERR | 152 | Trakt.ScheduledTasks.SyncFromTraktTask: Exception handled
System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.GetFromTraktWithPaging[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.SendGetWatchedEpisodesHistoryRequest(TraktUser traktUser)
at Trakt.ScheduledTasks.SyncFromTraktTask.SyncTraktDataForUser(User user, Double currentProgress, IProgress 1 progress, Double percentPerUser, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncFromTraktTask.ExecuteAsync(IProgress 1 progress, CancellationToken cancellationToken)

2023-03-09 14:25:00.859 +13:00 | ERR | 152 | Trakt.ScheduledTasks.SyncFromTraktTask: Error syncing trakt.tv data for user "Administrator"
System.Net.Http.HttpRequestException: Response status code does not indicate success: 429 (Too Many Requests).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.GetFromTraktWithPaging[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.SendGetWatchedEpisodesHistoryRequest(TraktUser traktUser)
at Trakt.ScheduledTasks.SyncFromTraktTask.SyncTraktDataForUser(User user, Double currentProgress, IProgress 1 progress, Double percentPerUser, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncFromTraktTask.ExecuteAsync(IProgress 1 progress, CancellationToken cancellationToken)

2023-03-09 14:25:00.861 +13:00 | INF | 152 | Emby.Server.Implementations.ScheduledTasks.TaskManager: "Import watched states and playback progress from trakt.tv" Completed after 108 minute(s) and 27 seconds

2023-03-09 14:25:00.863 +13:00 | INF | 152 | Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks

The issue with too many API calls I believe was already resolved dev side after 10.8.5 and trakt.tv plugin version 21 so may not be related?

@zotabee
Copy link

zotabee commented Nov 26, 2023

#174

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

No branches or pull requests

2 participants