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)

Pages: 1 2 3


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

Ok. I see you mentioned that you tried reinstalling the plugin. But I was wondering if files were left behind that the reinstalled plugin is continuing to use. Perhaps with a bad authentication token.

So I uninstalled the plugin and found that there is still an XML left behind and it does contain all the access tokens in it. So I'm thinking that somehow the Trakt plugin isn't updating that XML on your system and this fragment survives reinstalls with the bad token.

You shouldn't need to reinstall the plugin, but let's go ahead revoke this device's access, uninstall the Trakt plugin, then restart Jellyfin. I don't have a Windows system anymore so I'm going from memory, the XML with the Trakt tokens should be C:\ProgramData\Jellyfin\Server\plugins\configurations\Trakt.xml.

Delete that file. Reinstall the Trakt plugin, restart Jellyfin, reauthorized, and then try to export to Trakt again.


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

Ended up stopping my server, un-installing 10.10.3, going through the ProgramData and Program Files deleting anything Trkt related, re-downloaded 10.10.3, rebooted, re-installed JF, re-install the Trkt app, re-started the server and re-authorizing Trakt to my user and that finally worked. No idea why.


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

(2025-01-15, 03:09 PM)TheDreadPirate Wrote: Ok.  I see you mentioned that you tried reinstalling the plugin.  But I was wondering if files were left behind that the reinstalled plugin is continuing to use.  Perhaps with a bad authentication token.

So I uninstalled the plugin and found that there is still an XML left behind and it does contain all the access tokens in it.  So I'm thinking that somehow the Trakt plugin isn't updating that XML on your system and this fragment survives reinstalls with the bad token.

You shouldn't need to reinstall the plugin, but let's go ahead revoke this device's access, uninstall the Trakt plugin, then restart Jellyfin.  I don't have a Windows system anymore so I'm going from memory, the XML with the Trakt tokens should be C:\ProgramData\Jellyfin\Server\plugins\configurations\Trakt.xml.

Delete that file.  Reinstall the Trakt plugin, restart Jellyfin, reauthorized, and then try to export to Trakt again.

Great googily moogily, I didn't even see you had replied as I checked the thread by going to my last post in it and saw nothing below becuase that was the end od the page which I did not see.

I found the solution as I noted above, basically just re-install everything. Wish I'd seen your post sooner as you basically sugggest what I ended up doing.

As always your help is greatly appreciated, even if it is sometimes overlooked by user error!


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

(2025-01-15, 03:09 PM)TheDreadPirate Wrote: Ok.  I see you mentioned that you tried reinstalling the plugin.  But I was wondering if files were left behind that the reinstalled plugin is continuing to use.  Perhaps with a bad authentication token.

So I uninstalled the plugin and found that there is still an XML left behind and it does contain all the access tokens in it.  So I'm thinking that somehow the Trakt plugin isn't updating that XML on your system and this fragment survives reinstalls with the bad token.

You shouldn't need to reinstall the plugin, but let's go ahead revoke this device's access, uninstall the Trakt plugin, then restart Jellyfin.  I don't have a Windows system anymore so I'm going from memory, the XML with the Trakt tokens should be C:\ProgramData\Jellyfin\Server\plugins\configurations\Trakt.xml.

Delete that file.  Reinstall the Trakt plugin, restart Jellyfin, reauthorized, and then try to export to Trakt again.

I'm having the same issue, new additions to jellyfin library are not synced to Trakt collection since v10.10.4. Watched history does get synced.

I tried the above, but this didn't solve the issue for me and I'm not (yet) feeling for reinstalling Jellyfin altogether. 

Jellyfin logs (in trakt debug mode):

Code:
[2025-01-24 09:01:14.729 +01:00] [INF] [15] Trakt.ScheduledTasks.SyncLibraryTask: Movies to "add to" collection: 2
[2025-01-24 09:01:14.863 +01:00] [ERR] [15] Trakt.Api.TraktApi: Exception handled in PostToTrakt
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
[2025-01-24 09:01:14.866 +01:00] [ERR] [15] Trakt.ScheduledTasks.SyncLibraryTask: Exception handled sending movies to trakt.tv
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
  at Trakt.Api.TraktApi.SendLibraryUpdateAsync(ICollection`1 movies, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.SendMovieCollectionUpdates(Boolean collected, TraktUser traktUser, List`1 movies, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
[2025-01-24 09:01:38.913 +01:00] [INF] [24] Trakt.ScheduledTasks.SyncLibraryTask: Episodes to "add to" collection 16
[2025-01-24 09:01:39.078 +01:00] [ERR] [24] Trakt.Api.TraktApi: Exception handled in PostToTrakt
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
[2025-01-24 09:01:39.081 +01:00] [ERR] [24] Trakt.ScheduledTasks.SyncLibraryTask: Exception handled sending episodes to trakt.tv
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
  at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
  at Trakt.Api.TraktApi.SendLibraryUpdateInternalAsync(IReadOnlyList`1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken, Boolean useProviderIds)
  at Trakt.Api.TraktApi.SendLibraryUpdateAsync(ICollection`1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken)
  at Trakt.ScheduledTasks.SyncLibraryTask.SendEpisodeCollectionUpdates(Boolean collected, TraktUser traktUser, List`1 episodes, IProgress`1 progress, Double currentProgress, Double availablePercent, CancellationToken cancellationToken)
[2025-01-24 09:01:39.084 +01:00] [INF] [24] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Export library to trakt.tv" Completed after 0 minute(s) and 27 seconds



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

Hi. I am having the same problem with the same error message as above.
I have tried unauthorizing and reauthorizing as well as uninstall und reinstall of the trakt plugin. Still getting the error.


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

So, http code 420 is a non-standard code. From Trakt's documentation, code 420 means you've hit some limit for a non-VIP account.

https://trakt.docs.apiary.io/#introduction/status-codes:~:text=420,item%20count%2C%20etc

This forum post indicates that, for this user, they may have had more then 10 items for "plan to watch".

https://forums.trakt.tv/t/http-error-420/41952

Regardless, this isn't the same issue as OP, which was a code 401 (unauthorized). You've hit or exceeded some account limit for your account tier.


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

Thanks for your effort! The issue indeed lies with trakt and changes in their policy:

Watchlist and Collection Limits: Free users are now limited to 100 items in their watchlists and collections, down from previous limits.

Source: https://forums.trakt.tv/t/freemium-experience-more-features-for-all/41641


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

Looks like my new issues, unable to export any new media entries to my Trakt collection and several views not working, may be due to these recent Trakt changes and their desired attempt to force users into a paid subscription service. F that noise. I use Jellyfin BECAUSE it's free and open source. If they need more cash they can stuff more ads on their page which my adblock handles and they can solicit for more donations. Their VIP price isn't worth simply syning my watch states between multiple accounts. I'll just use 1 account for all my personal instances instead.


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

I dont know if I have the same problem with trakt but it doesnt export to collection. Not even 1 file this it gives :
[2025-02-04 06:53:03.620 +01:00] [ERR] [43] Trakt.Api.TraktApi: Exception handled in PostToTrakt
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
[2025-02-04 06:39:42.267 +01:00] [ERR] [8] Trakt.Helpers.LibraryManagerEventsHelper: Exception handled processing queued episode events
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.SendLibraryUpdateInternalAsync(IReadOnlyList1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken, Boolean useProviderIds)
at Trakt.Api.TraktApi.SendLibraryUpdateAsync(ICollection
1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken)
at Trakt.Helpers.LibraryManagerEventsHelper.ProcessQueuedEpisodeEvents(IReadOnlyCollection`1 events, TraktUser traktUser, EventType eventType)

it always worked fine when used trakt to collection but not anymore for days. maybe longer

Ive already reinstalled Jellyfin and also did couple of force re-authorization but didnt work. Or maybe its because i am not a vip member on Trakt. Maybe trakt changed this?

But when I watched something it sync with Jellyfin and for shows I am currently watching they are syncing with jellyfin only.


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

(2025-02-04, 10:48 AM)kipke112 Wrote: I dont know if I have the same problem with trakt but it doesnt export to collection. Not even 1 file this it gives :
[2025-02-04 06:53:03.620 +01:00] [ERR] [43] Trakt.Api.TraktApi: Exception handled in PostToTrakt
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
[2025-02-04 06:39:42.267 +01:00] [ERR] [8] Trakt.Helpers.LibraryManagerEventsHelper: Exception handled processing queued episode events
System.Net.Http.HttpRequestException: Response status code does not indicate success: 420.
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Trakt.Api.TraktApi.PostToTrakt[T](String url, Object data, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.SendLibraryUpdateInternalAsync(IReadOnlyList1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken, Boolean useProviderIds)
at Trakt.Api.TraktApi.SendLibraryUpdateAsync(ICollection
1 episodes, TraktUser traktUser, EventType eventType, CancellationToken cancellationToken)
at Trakt.Helpers.LibraryManagerEventsHelper.ProcessQueuedEpisodeEvents(IReadOnlyCollection`1 events, TraktUser traktUser, EventType eventType)

it always worked fine when used trakt to collection but not anymore for days. maybe longer

Ive already reinstalled Jellyfin and also did couple of force re-authorization but didnt work. Or maybe its because i am not a vip member on Trakt. Maybe trakt changed this?

But when I watched something it sync with Jellyfin and for shows I am currently watching they are syncing with jellyfin only.

You are not having the same issue. OP had code 401, unauthorized/authentication, issues. Yours is code 420, which means you've exceeded some limit.

Read my post from Jan 24.

(2025-01-24, 02:04 PM)TheDreadPirate Wrote: So, http code 420 is a non-standard code. From Trakt's documentation, code 420 means you've hit some limit for a non-VIP account.

https://trakt.docs.apiary.io/#introduction/status-codes:~:text=420,item%20count%2C%20etc

This forum post indicates that, for this user, they may have had more then 10 items for "plan to watch".

https://forums.trakt.tv/t/http-error-420/41952

Regardless, this isn't the same issue as OP, which was a code 401 (unauthorized). You've hit or exceeded some account limit for your account tier.