home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
Trakt token expiry
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="doskabouter" data-source="post: 1304054" data-attributes="member: 98267"><p>i think (at least from my short investigation) that the token validity is only checked when MP/Trakt is started.</p><p>If MP is running long then it may also expire during usage.</p><p>F.e. Started MP at 12:50 and at around 22:15 i watched a series and got the error:</p><p>[CODE]2025-11-05 22:13:02.131 [DEBG] [OnlineVideosTracking][27]: Received Video Playback event from OnlineVideos</p><p>2025-11-05 22:13:02.148 [DEBG] [Scrobble][49]: Address: https://api.trakt.tv/scrobble/start, Post: {"app_date":"2024-09-30","app_version":"6.0.5.364","progress":0,"episode":{"ids":{"slug":null,"trakt":null,"imdb":null,"tmdb":null,"tvdb":null,"tvrage":null},"number":2,"season":28,"title":null},"show":{"ids":{"slug":null,"trakt":null,"imdb":"0121955","tmdb":null,"tvdb":null,"tvrage":null},"title":"South Park","year":null}}</p><p>2025-11-05 22:13:02.338 [ERR ] [Scrobble][49]: Protocol Error, Code = '401', Description = 'Unauthorized', Url = 'https://api.trakt.tv/scrobble/start', Headers = 'Transfer-Encoding: chunked, Connection: keep-alive, x-frame-options: SAMEORIGIN, x-xss-protection: 0, x-content-type-options: nosniff, x-download-options: noopen, x-permitted-cross-domain-policies: none, referrer-policy: strict-origin-when-cross-origin, vary: Accept-Encoding, x-ratelimit: {"name":"AUTHED_API_POST_LIMIT","period":1,"limit":1,"remaining":0,"until":"2025-11-05T21:13:04Z"}, Server-Timing: cfCacheStatus;desc="DYNAMIC",cfEdge;dur=10,cfOrigin;dur=136, x-request-id: f61ca3bd-5c58-4742-b171-e37cb542cb3c, x-runtime: 0.042113, cf-cache-status: DYNAMIC, CF-RAY: 999f5a54ea7ef5db-AMS, alt-svc: h3=":443"; ma=86400, Cache-Control: max-age=0, private, must-revalidate, no_store=true, no_cache=true, Content-Type: text/html, Date: Wed, 05 Nov 2025 21:13:03 GMT, Set-Cookie: _traktsession=<redacted>; HttpOnly; SameSite=Lax; Path=/, Server: cloudflare, WWW-Authenticate: Bearer realm="Trakt", error="invalid_token", error_description="The access token expired"'</p><p>[/CODE]</p><p></p><p>So we should implement getting a fresh one in case of 401's</p><p></p><p>Edit: Just to clarify: this is normal behavior and isn't tied to shorter expiry dates at all.</p><p>Only if the token is expired before startup of MP it's renewed, when it expires between startup and watching something its going to give that error.</p><p>Working on a fix now</p></blockquote><p></p>
[QUOTE="doskabouter, post: 1304054, member: 98267"] i think (at least from my short investigation) that the token validity is only checked when MP/Trakt is started. If MP is running long then it may also expire during usage. F.e. Started MP at 12:50 and at around 22:15 i watched a series and got the error: [CODE]2025-11-05 22:13:02.131 [DEBG] [OnlineVideosTracking][27]: Received Video Playback event from OnlineVideos 2025-11-05 22:13:02.148 [DEBG] [Scrobble][49]: Address: https://api.trakt.tv/scrobble/start, Post: {"app_date":"2024-09-30","app_version":"6.0.5.364","progress":0,"episode":{"ids":{"slug":null,"trakt":null,"imdb":null,"tmdb":null,"tvdb":null,"tvrage":null},"number":2,"season":28,"title":null},"show":{"ids":{"slug":null,"trakt":null,"imdb":"0121955","tmdb":null,"tvdb":null,"tvrage":null},"title":"South Park","year":null}} 2025-11-05 22:13:02.338 [ERR ] [Scrobble][49]: Protocol Error, Code = '401', Description = 'Unauthorized', Url = 'https://api.trakt.tv/scrobble/start', Headers = 'Transfer-Encoding: chunked, Connection: keep-alive, x-frame-options: SAMEORIGIN, x-xss-protection: 0, x-content-type-options: nosniff, x-download-options: noopen, x-permitted-cross-domain-policies: none, referrer-policy: strict-origin-when-cross-origin, vary: Accept-Encoding, x-ratelimit: {"name":"AUTHED_API_POST_LIMIT","period":1,"limit":1,"remaining":0,"until":"2025-11-05T21:13:04Z"}, Server-Timing: cfCacheStatus;desc="DYNAMIC",cfEdge;dur=10,cfOrigin;dur=136, x-request-id: f61ca3bd-5c58-4742-b171-e37cb542cb3c, x-runtime: 0.042113, cf-cache-status: DYNAMIC, CF-RAY: 999f5a54ea7ef5db-AMS, alt-svc: h3=":443"; ma=86400, Cache-Control: max-age=0, private, must-revalidate, no_store=true, no_cache=true, Content-Type: text/html, Date: Wed, 05 Nov 2025 21:13:03 GMT, Set-Cookie: _traktsession=<redacted>; HttpOnly; SameSite=Lax; Path=/, Server: cloudflare, WWW-Authenticate: Bearer realm="Trakt", error="invalid_token", error_description="The access token expired"' [/CODE] So we should implement getting a fresh one in case of 401's Edit: Just to clarify: this is normal behavior and isn't tied to shorter expiry dates at all. Only if the token is expired before startup of MP it's renewed, when it expires between startup and watching something its going to give that error. Working on a fix now [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Trakt
Trakt token expiry
Contact us
RSS
Top
Bottom