Jellyfin Forum
Trakt add-on not exporting new library additions to collection. - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Trakt add-on not exporting new library additions to collection. (/t-trakt-add-on-not-exporting-new-library-additions-to-collection)



Trakt add-on not exporting new library additions to collection. - KodiUser1138 - 2025-01-03

Not sure why but can't get the Trakt add-on to export new additions to my libraries to my Trakt collection. The export just fails when manually starting or during it's regualar scheduled task


RE: Trakt add-on not exporting new library additions to collection. - TheDreadPirate - 2025-01-03

I'm assuming you are seeing something 429 errors in your jellyfin log when Trakt tries to sync?


RE: Trakt add-on not exporting new library additions to collection. - KodiUser1138 - 2025-01-04

This is from the log when attempting to manually run the scheduled task. It's basically an instant fail.


Code:
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
  at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser)
  at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.SyncUserLibrary(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double percentPerUser, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
[2025-01-03 18:19:10.426 -07:00] [ERR] [67] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
  at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser)
  at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.SyncUserLibrary(User user, TraktUser traktUser, IProgress`1 progress, Double currentProgress, Double percentPerUser, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2025-01-03 18:19:10.434 -07:00] [INF] [67] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Export library to trakt.tv" Failed after 0 minute(s) and 0 seconds



RE: Trakt add-on not exporting new library additions to collection. - TheDreadPirate - 2025-01-04

Try going to the Trakt plugin settings and re-authorizing since it looks like the authorization expired or was reset.


RE: Trakt add-on not exporting new library additions to collection. - KodiUser1138 - 2025-01-04

I've done that already. Went to Trakt and dissasossiated all approved apps (only use JF) and re-authorized. That didn't help. I uninstalled and re-downloaded the add-on and that didn't work either. Frustrating. Thanks for looking at it though.