v20 Trakt: failure to sync, how to diagnose better?
#1
Hi,

For a few months, a explicit launch of trakt (Add-ons->Trakt) will fail.
From the logs, there might be two reasons:
- an OAuth 400, hard to diagnose
- Lacking/Corrupted TVShows data on Trakt.tv

I triggered a removed duplicated plays from Trakt.tv yesterday, and from the feedback, there were quite a few that I would be unable to explain... But at least, it should be cleaner now.

But, after this, I still show the same issue. I would expect these are the most relevant lines:
   debug <general>: [script.trakt] resources.lib.syncEpisodes: [Episodes Sync] Getting episode collection/watched/rated from Trakt.tv
    info <general>: [script.trakt] trakt.core.http: OAuth - Current username is not available ("username" parameter hasn't been defined)
    info <general>: [script.trakt] trakt.core.http: OAuth - Token has expired, refreshing token...
   debug <general>: [script.trakt] urllib3.connectionpool: https://api.trakt.tv:443 "POST /oauth/token HTTP/1.1" 400 None
 warning <general>: [script.trakt] trakt.core.http: OAuth - Unable to refresh expired token (code: 400)
   debug <general>: [script.trakt] resources.lib.syncEpisodes: [Episodes Sync] Invalid Trakt.tv show list, possible error getting data from Trakt, aborting Trakt.tv collection/watched/rated update.
   debug <general>: [script.trakt] resources.lib.syncEpisodes: [Episodes Sync] Error getting Trakt.tv collected show list, aborting tv show sync.
   debug <general>: [script.trakt] resources.lib.sync: [Sync] Finished synchronization with Trakt.tv
   debug <general>: CServiceAddonManager: stopping script.trakt.
   debug <general>: CPythonInvoker(2, C:\Users\Eddy\AppData\Roaming\Kodi\addons\script.trakt\default.py): trigger Monitor abort request

More complete log at https://paste.kodi.tv/giyopomayu.kodi

Thank you for any food for thoughts !

sb

PS: Using a centralized MariaDB that I access from 2 AndroidTV and 1 Windows.
Reply
#2
Quote:"username" parameter hasn't been defined ....
so. define the username in settings?
Reply
#3
Tsss... :-) it is there of course, the Movies part works fine by the way.
I guess this log entry is a consequence of the OAuth 400: it lost the user context by that time.
Reply

Logout Mark Read Team Forum Stats Members Help
Trakt: failure to sync, how to diagnose better?0