fatshotty 4 Posted March 20, 2024 Posted March 20, 2024 hello i'm facing some issue with trakt plugin, too I have configured 2 pin for 2 different users. Collection is correctly synced between trakt and emby, ok. Playstates are not correctly synced. I tried to "mark a movie as watched" and "execute the background task" . Both give me the errors: 2024-03-20 14:50:50.109 Info HttpClient: POST https://api.trakt.tv/oauth/token 2024-03-20 14:50:50.256 Error Trakt: Error sending playstate updates *** Error Report *** Version: 4.8.3.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 3.10.0-1160.76.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed Aug 1 Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 40 Data path: /config Application path: /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.SendMoviePlaystateUpdates(List`1 movies, TraktUser traktUser, Boolean forceUpdate, Boolean seen, CancellationToken cancellationToken) at Trakt.Helpers.UserDataManagerEventsHelper.OnTimerCallback(Object state) Source: Emby.Server.Implementations TargetSite: Void MoveNext() 2024-03-20 14:52:06.731 Info HttpClient: POST https://api.trakt.tv/oauth/token 2024-03-20 14:52:06.843 Error Trakt: Error syncing trakt data for user fatshotty *** Error Report *** Version: 4.8.3.0 Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Linux version 3.10.0-1160.76.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Wed Aug 1 Framework: .NET 6.0.25 OS/Process: x64/x64 Runtime: system/System.Private.CoreLib.dll Processor count: 40 Data path: /config Application path: /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.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() what's wrong? thank in advance
Luke 40077 Posted March 20, 2024 Posted March 20, 2024 @fatshottyplease try reconfiguring your Trakt credentials and see if that helps.
fatshotty 4 Posted March 21, 2024 Author Posted March 21, 2024 i tried it seems work now. but i don't understand the trakt plugin workflow: i have 4 users on my emby server. so far, i configured only 2 users trakt pins; what should i do now? should i run the "export library on trakt" task in order to make trakt-plugin correctly performs the login on trakt? More: in the future (maybe in next few days) i will add trakt pins on other 2 users. Should i re-run "export library on trakt" task? So, how trakt-plugin performs login for each users?
Luke 40077 Posted March 21, 2024 Posted March 21, 2024 3 hours ago, fatshotty said: i tried it seems work now. but i don't understand the trakt plugin workflow: i have 4 users on my emby server. so far, i configured only 2 users trakt pins; what should i do now? should i run the "export library on trakt" task in order to make trakt-plugin correctly performs the login on trakt? More: in the future (maybe in next few days) i will add trakt pins on other 2 users. Should i re-run "export library on trakt" task? So, how trakt-plugin performs login for each users? It's separate for each user, although the scheduled task will sync everyone. Generally the tasks only need to be run once when first setting it up.
fatshotty 4 Posted March 21, 2024 Author Posted March 21, 2024 thanks and what about the other task? i mean "import playstats form trakt" task. Should it be run only once or I can schedule "once per day" for all users?
Luke 40077 Posted March 21, 2024 Posted March 21, 2024 52 minutes ago, fatshotty said: thanks and what about the other task? i mean "import playstats form trakt" task. Should it be run only once or I can schedule "once per day" for all users? Probably just once, if even at all. It just depends on what you want to do.
Oratorian 24 Posted March 28, 2024 Posted March 28, 2024 (edited) embyserver.txt Getting the Same error when syncing playstates.. On 3/20/2024 at 8:03 PM, Luke said: @fatshottyplease try reconfiguring your Trakt credentials and see if that helps. I already did that, got a new pin but that didnt help. I just recieve BadRequest when trying to run the Sheduled task. Only one app is connected to my trakt account, and that is emby. This error also occured on 4.9.0.11 and 4.9.0.10 i just checked some logs of the emby server before update to 4.9.0.12 I also tried downgrading to trakt 2.7.1 and 2.7.0 but with no luck Edited March 28, 2024 by Oratorian
Oratorian 24 Posted March 28, 2024 Posted March 28, 2024 embyserver_debug.txt just in case. i made a debuglog and tried again.
Luke 40077 Posted March 28, 2024 Posted March 28, 2024 7 minutes ago, Oratorian said: embyserver_debug.txt 22.23 kB · 0 downloads just in case. i made a debuglog and tried again. HI, make sure your credentials are from opensubtitles.com and you entered your opensubtitles.com username, not your email address. Please try reconfiguring it based on that and see if that helps.
Oratorian 24 Posted March 28, 2024 Posted March 28, 2024 10 minutes ago, Luke said: HI, make sure your credentials are from opensubtitles.com and you entered your opensubtitles.com username, not your email address. Please try reconfiguring it based on that and see if that helps. Opensubtitles? My problem is with Trakt
Luke 40077 Posted March 28, 2024 Posted March 28, 2024 42 minutes ago, Oratorian said: Opensubtitles? My problem is with Trakt Sorry, my mistake. You have two users with trakt configured. One succeeded, the other did not and probably needs to have credentials reconfigured.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now