Jump to content

Export Library to Trakt Failed on Emby


Recommended Posts

se7enpoint62
Posted

I've got this as well. I've tried wiping out the plugin, reinstalling, and getting a new pin and no luck. I read in one of the threads to email trakt support to unlock trakt account. I emailed yesterday, no reply yet. 

se7enpoint62
Posted

2024-07-03 07:37:27.739 Info TaskManager: Export Library to Trakt Failed after 0 minute(s) and 0 seconds
2024-07-03 07:37:58.251 Info Server: http/1.1 POST http://localhost:8096/emby/Users/f5e9afa8ae984b95be724a0a200f8658/TypedSettings/trakt?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=95d39917-9bed-4d74-88a6-45898c492b96&X-Emby-Client-Version=4.9.0.26&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. Source Ip: ::1, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
2024-07-03 07:37:58.253 Info BaseItem: Updating trakt user, reset pin info: True
2024-07-03 07:37:58.254 Info Server: http/1.1 Response 204 to ::1. Time: 3ms. POST http://localhost:8096/emby/Users/f5e9afa8ae984b95be724a0a200f8658/TypedSettings/trakt?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=95d39917-9bed-4d74-88a6-45898c492b96&X-Emby-Client-Version=4.9.0.26&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-07-03 07:38:04.694 Info Server: http/1.1 POST http://localhost:8096/emby/ScheduledTasks/Running/515a9565f7d0dfe5f375d92153f7c25d?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=95d39917-9bed-4d74-88a6-45898c492b96&X-Emby-Client-Version=4.9.0.26&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. Source Ip: ::1, UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
2024-07-03 07:38:04.695 Info Server: http/1.1 Response 204 to ::1. Time: 1ms. POST http://localhost:8096/emby/ScheduledTasks/Running/515a9565f7d0dfe5f375d92153f7c25d?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=95d39917-9bed-4d74-88a6-45898c492b96&X-Emby-Client-Version=4.9.0.26&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-07-03 07:38:04.695 Info TaskManager: Executing Export Library to Trakt
2024-07-03 07:38:05.109 Info HttpClient: GET https://api.trakt.tv/sync/watched/movies
2024-07-03 07:38:05.193 Error TaskManager: Error
    *** Error Report ***
    Version: 4.9.0.26
    Command line: C:\Users\xxxxxxxxx\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows 10.0.19045
    OS/Process: x64/x64
    Framework: .NET 8.0.5
    Runtime: C:/Users/xxxxxxxxx/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 20
    Data path: C:\Users\xxxxxxxxx\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\xxxxxxxxx\AppData\Roaming\Emby-Server\system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
       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.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
       at Trakt.ScheduledTasks.TraktUserSync.SyncMovies(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
       at Trakt.ScheduledTasks.TraktUserSync.SyncUserData(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
       at Trakt.ScheduledTasks.SyncLibrary.Execute(CancellationToken cancellationToken, IProgress`1 progress)
       at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
    Source: Emby.Server.Implementations
    TargetSite: Void MoveNext()
    
2024-07-03 07:38:05.193 Info TaskManager: Export Library to Trakt Failed after 0 minute(s) and 0 seconds

Posted

I would try reconfiguring your trakt credentials and see if that helps.

se7enpoint62
Posted

I created a whole new Trakt account. Still get this fail. Trakt support says nothing appears locked. 

 

2024-07-03 12:48:44.768 Info TaskManager: Executing Export Library to Trakt
2024-07-03 12:48:44.768 Info Server: http/1.1 Response 204 to ::1. Time: 1ms. POST http://localhost:8096/emby/ScheduledTasks/Running/515a9565f7d0dfe5f375d92153f7c25d?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge Windows&X-Emby-Device-Id=0acf52de-a79e-4c54-b150-4c2cc4432e79&X-Emby-Client-Version=4.9.0.26&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-07-03 12:48:45.187 Info HttpClient: GET https://api.trakt.tv/sync/watched/movies
2024-07-03 12:48:45.353 Error TaskManager: Error
*** Error Report ***
Version: 4.9.0.26
Command line: C:\Users\xxxxxxxx\AppData\Roaming\Emby-Server\system\EmbyServer.dll
Operating system: Microsoft Windows 10.0.19045
OS/Process: x64/x64
Framework: .NET 8.0.5
Runtime: C:/Users/xxxxxxxx/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
Processor count: 20
Data path: C:\Users\xxxxxxxx\AppData\Roaming\Emby-Server\programdata
Application path: C:\Users\xxxxxxxx\AppData\Roaming\Emby-Server\system
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
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.GetFromTrakt[T](String url, TraktUser traktUser, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.TraktUserSync.SyncMovies(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.TraktUserSync.SyncUserData(User user, TraktUser traktUser, TraktApi traktApi, ISplittableProgress`1 progress, CancellationToken cancellationToken)
at Trakt.ScheduledTasks.SyncLibrary.Execute(CancellationToken cancellationToken, IProgress`1 progress)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
Source: Emby.Server.Implementations
TargetSite: Void MoveNext()
 
2024-07-03 12:48:45.353 Info TaskManager: Export Library to Trakt Failed after 0 minute(s) and 0 seconds
Posted

@se7enpoint62please update to the latest update to the Emby Trakt plugin, then restart the server, try again, and then please attach the complete emby server log file, rather than a snippet. Thanks.

se7enpoint62
Posted

Updated the plugin, restarted, ran the scheduled task again. It didn't show failed on the dashboard this time, it does appear to say bad request in the log though. 

embyserver7524.txt

Posted
On 7/5/2024 at 6:36 PM, se7enpoint62 said:

Updated the plugin, restarted, ran the scheduled task again. It didn't show failed on the dashboard this time, it does appear to say bad request in the log though. 

embyserver7524.txt 52.2 kB · 1 download

Hi, you have two users on your server with Trakt configured - Josh and Grown Ups. please try reconfiguring Trakt credentials for both of them, and/or removing them from either of those users if they are not needed anymore.
 

Please let us know if this helps. Thanks.

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...