Jump to content

trakt account sync issues


Jifeng4ever
Go to solution Solved by Luke,

Recommended Posts

Jifeng4ever

after updated to new version of server in QNAP NAS, my trakt works after get the PIN from Trakt.com, but few days later, the pin will get lost. and it keep happen until now, please guide us what to do to solve this problem? 

  • Like 1
Link to comment
Share on other sites

slamthedoor

I might have the same problem. Trakt is not syncing watch status for me. The note under 'Authentication PIN' in my user settings says that the PIN field will be cleared after a successful sync. I put my PIN in here days ago, but the field hasn't been cleared so I assume that means the PIN has not been exchanged for a token. My log has a 'BadRequest' HttpException around the time it's updating watch history. 

 

2024-02-21 09:46:38.585 Info Trakt: Item is played. Scrobble
2024-02-21 09:46:38.611 Info App: Sqlite: 284 - automatic index on LastWatchedEpisodes(SeriesPresentationUniqueKey)
2024-02-21 09:46:39.101 Info App: Sqlite: 284 - automatic index on LastWatchedEpisodes(SeriesPresentationUniqueKey)
2024-02-21 09:46:39.693 Info HttpClient: POST https://api.trakt.tv/oauth/token
2024-02-21 09:46:39.800 Error Trakt: Exception handled sending status update
    *** Error Report ***
    Version: 4.8.1.0
    Command line: C:\Users\plex\Programs\embyserver-win-x64\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows 10.0.19045
    Framework: .NET 6.0.26
    OS/Process: x64/x64
    Runtime: C:/Users/plex/Programs/embyserver-win-x64/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: C:\Users\plex\Programs\embyserver-win-x64\programdata
    Application path: C:\Users\plex\Programs\embyserver-win-x64\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: BadRequest
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
       at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
       at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
       at Trakt.Api.TraktApi.SendEpisodeStatusUpdateAsyncInternal(List`1 episodeDatas, MediaStatus status, TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.SendEpisodeStatusUpdateAsync(Episode episode, MediaStatus status, TraktUser traktUser, Single progressPercent, CancellationToken cancellationToken)
       at Trakt.ServerMediator.KernelPlaybackStopped(Object sender, PlaybackStopEventArgs e)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-02-21 10:46:40.983 Debug TaskManager: Queueing task RefreshAuthorizationsScheduledTask

2024-02-22 07_13_50-Window.png

embyserver-63844156800.txt

Link to comment
Share on other sites

On 2/22/2024 at 7:22 AM, slamthedoor said:

I might have the same problem. Trakt is not syncing watch status for me. The note under 'Authentication PIN' in my user settings says that the PIN field will be cleared after a successful sync. I put my PIN in here days ago, but the field hasn't been cleared so I assume that means the PIN has not been exchanged for a token. My log has a 'BadRequest' HttpException around the time it's updating watch history. 

 

2024-02-21 09:46:38.585 Info Trakt: Item is played. Scrobble
2024-02-21 09:46:38.611 Info App: Sqlite: 284 - automatic index on LastWatchedEpisodes(SeriesPresentationUniqueKey)
2024-02-21 09:46:39.101 Info App: Sqlite: 284 - automatic index on LastWatchedEpisodes(SeriesPresentationUniqueKey)
2024-02-21 09:46:39.693 Info HttpClient: POST https://api.trakt.tv/oauth/token
2024-02-21 09:46:39.800 Error Trakt: Exception handled sending status update
    *** Error Report ***
    Version: 4.8.1.0
    Command line: C:\Users\plex\Programs\embyserver-win-x64\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows 10.0.19045
    Framework: .NET 6.0.26
    OS/Process: x64/x64
    Runtime: C:/Users/plex/Programs/embyserver-win-x64/system/System.Private.CoreLib.dll
    Processor count: 4
    Data path: C:\Users\plex\Programs\embyserver-win-x64\programdata
    Application path: C:\Users\plex\Programs\embyserver-win-x64\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: BadRequest
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
       at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
       at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
       at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
       at Trakt.Api.TraktApi.SendEpisodeStatusUpdateAsyncInternal(List`1 episodeDatas, MediaStatus status, TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.Api.TraktApi.SendEpisodeStatusUpdateAsync(Episode episode, MediaStatus status, TraktUser traktUser, Single progressPercent, CancellationToken cancellationToken)
       at Trakt.ServerMediator.KernelPlaybackStopped(Object sender, PlaybackStopEventArgs e)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-02-21 10:46:40.983 Debug TaskManager: Queueing task RefreshAuthorizationsScheduledTask

2024-02-22 07_13_50-Window.png

embyserver-63844156800.txt 12.43 MB · 0 downloads

@slamthedoorthe config screen help text needs to be updated. It doesn't get cleared.

But as far as your error goes, try reconfiguring your trakt credentials and see if that resolves it.

Link to comment
Share on other sites

Trevor68

Fresh Install of 4.8 same problem 

*** Error Report ***
Version: 4.8.1.0
Command line: /app/emby/EmbyServer.dll -programdata /config -ffdetect /app/emby/ffdetect -ffmpeg /app/emby/ffmpeg -ffprobe /app/emby/ffprobe -restartexitcode 3
Operating system: Linux version 6.1.74-production+truenas (root@tnsbuilds01.tn.ixsystems.net) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2
Framework: .NET 6.0.25
OS/Process: x64/x64
Runtime: app/emby/System.Private.CoreLib.dll
Processor count: 4
Data path: /config
Application path: /app/emby
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: BadRequest
at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
at Trakt.Api.TraktApi.PostToTrakt(String url, Object data, CancellationToken cancellationToken, TraktUser traktUser)
at Trakt.Api.TraktApi.RefreshUserAuth(TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.Api.TraktApi.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncFromTrakt.SyncTraktDataForUser(User user, TraktUser traktUser, Double currentProgress, CancellationToken cancellationToken, IProgress`1 progress, Double percentPerUser)
at Trakt.ScheduledTasks.SyncFromTrakt.Execute(CancellationToken cancellationToken, IProgress`1 progress)
Source: Emby.Server.Implementations
TargetSite: Void MoveNext()
Link to comment
Share on other sites

slamthedoor
9 hours ago, Luke said:

@slamthedoorthe config screen help text needs to be updated. It doesn't get cleared.

But as far as your error goes, try reconfiguring your trakt credentials and see if that resolves it.

I got a new Trakt PIN (is that what you mean by reconfiguring the credentials?). I used 'Get PIN' in Emby, got the new PIN, and then entered that back into the field in Emby. Even after doing that, I still get the Trakt errors in my log. I watched a new program that should sync the 'played' state to Tract but it was not sync'd. 

embyserver (11).txt

Link to comment
Share on other sites

On 2/26/2024 at 8:04 AM, slamthedoor said:

I got a new Trakt PIN (is that what you mean by reconfiguring the credentials?). I used 'Get PIN' in Emby, got the new PIN, and then entered that back into the field in Emby. Even after doing that, I still get the Trakt errors in my log. I watched a new program that should sync the 'played' state to Tract but it was not sync'd. 

embyserver (11).txt 110.14 kB · 0 downloads

How many users on your server have setup trakt?

Link to comment
Share on other sites

slamthedoor
4 hours ago, Luke said:

How many users on your server have setup trakt?

I only have one user that has trakt setup. 

Link to comment
Share on other sites

  • Solution

Hi, an update to the trakt plugin went out yesterday. Once you have that, can you try reconfiguring your credentials again and see how things compare? Thanks.

Link to comment
Share on other sites

Jifeng4ever
1 hour ago, Luke said:

Hi, an update to the trakt plugin went out yesterday. Once you have that, can you try reconfiguring your credentials again and see how things compare? Thanks.

hi Luke, how is going. the issues for Trakt account sync drive me crazy, after i click " Get Pin" button in the setting, then about 3-4 days later, the "PIN" from trakt account will dispear and i have to redo the process of "Get pin", it happend since the new version of seperate the trakt account into individual user setting. 

today, i submit the new pin again, hope it will get disapeared again. 

thx luke 

  • Thanks 1
Link to comment
Share on other sites

slamthedoor
12 hours ago, Luke said:

Hi, an update to the trakt plugin went out yesterday. Once you have that, can you try reconfiguring your credentials again and see how things compare? Thanks.

I think my trakt problem is gone; watched shows are now sync'ing to trakt. I followed what you said above and restarted Emby (just in case). I have manually marked shows as watched in Emby and they are then sync'ing to trakt as watched. Thanks for the help Luke. 

  • Thanks 1
Link to comment
Share on other sites

Jifeng4ever

guys, problem solved, after new update to the plugin of trakt.

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...