Jump to content

Syncing with Trakt


Go to solution Solved by M3th0s,

Recommended Posts

Posted

Afternoon guys

Wondering if anyone can help me. Trying to sync emby with my trakt account and no luck.

 

Log entries below, let me know if you need anything else

2020-03-03 14:21:48.896 Error TaskManager: Error
	*** Error Report ***
	Version: 4.3.1.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Unix 4.15.0.88
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///system/System.Private.CoreLib.dll
	Processor count: 16
	Program data path: /config
	Application directory: /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.<>c__DisplayClass34_0.<<PostToTrakt>b__0>d.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at Trakt.Api.TraktApi.Retry[T](Func`1 function)
	   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(String url, CancellationToken cancellationToken, TraktUser traktUser)
	   at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.SyncLibraryTask.SyncMovies(User user, TraktUser traktUser, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.SyncLibraryTask.SyncUserLibrary(User user, TraktUser traktUser, ISplittableProgress`1 progress, CancellationToken cancellationToken)
	   at Trakt.ScheduledTasks.SyncLibraryTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	
2020-03-03 14:21:48.896 Info TaskManager: Sync library to trakt.tv Failed after 0 minute(s) and 1 seconds
mastrmind11
Posted

Yeah I setup for my own specific user and linked it to my trakt account.

 

Would the fact that emby is still scanning a lot of stuff into the library make any difference?

No.  check your creds:

MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized
vdatanet
Posted

Can you post your config file? It shoul look like this:

<?xml version="1.0"?>
<PluginConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TraktUsers>
    <TraktUser>
      <AccessToken>removed</AccessToken>
      <RefreshToken>removed</RefreshToken>
      <LinkedMbUserId>removed</LinkedMbUserId>
      <UsesAdvancedRating>false</UsesAdvancedRating>
      <SkipUnwatchedImportFromTrakt>false</SkipUnwatchedImportFromTrakt>
      <PostWatchedHistory>true</PostWatchedHistory>
      <SyncCollection>true</SyncCollection>
      <ExtraLogging>false</ExtraLogging>
      <ExportMediaInfo>false</ExportMediaInfo>
      <LocationsExcluded />
      <AccessTokenExpiration />
    </TraktUser>
  </TraktUsers>
</PluginConfiguration>
Spaceboy
Posted

In finding I’m regularly (monthly) having to revalidate the pin at the moment

  • Solution
Posted

 

No.  check your creds:

MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Unauthorized

I've removed the plugin, re-added it and re-entered the pin from trakt, saved it.

Re-tried the scheduled task and seems to be working now.

Thanks again and sorry for troubling you!

  • Like 2

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