Jump to content

Issues with Trakt plugin


CrazyMonk

Recommended Posts

CrazyMonk

There's 3 issues I'm currently facing with the Trakt plugin as it is now.

  1. The plugin is trying to sync data for users who don't have the plugin set up.
    There's a lot of the following error in the logs when I run the "Import Playstates from Trakt" scheduled task, one for each user I have that doesn't have the plugin set up (i.e. they have their input field for "Authentication PIN" empty).
    2023-02-05 14:14:34.825 Error Trakt: Error syncing trakt data for user <username here>
    	*** Error Report ***
    	Version: 4.8.0.21
    	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 5.15.0-58-generic (buildd@lcy02-amd64-101) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #64-Ubuntu
    	Framework: .NET 6.0.8
    	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(String url, TraktUser traktUser, CancellationToken cancellationToken)
    	   at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser, CancellationToken cancellationToken)
    	   at Trakt.ScheduledTasks.SyncFromTraktTask.SyncTraktDataForUser(User user, Double currentProgress, CancellationToken cancellationToken, IProgress`1 progress, Double percentPerUser)
    	   at Trakt.ScheduledTasks.SyncFromTraktTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
    	Source: Emby.Server.Implementations
    	TargetSite: Void MoveNext()
  2. Running the "Export Library to Trakt" scheduled task fails with "Error Trakt: traktUser is either null or has no linked MB account".
    Here's a link to the gist for the debug logs when I run that task: GitHub Gist. The logs are also attached.
  3. Folders that aren't shared with users show up under the list of folders that can be excluded in the Trakt section of their user settings. These folders are all part of the same library, and I'm only sharing one out of the 3 folders in that library, but all 3 show up in that list of folders to be excluded from being synced with Trakt.
    For example, here's the folders they have access to:

    Image

    But, here's what they see under the user Trakt settings:

    Image

    I'd expect the folders for private content to not show up in that list since it's not shared with them and they're not supposed to know about their existence imo.

Thanks for the help in advance 😁

export_library_to_trakt.log

Edited by CrazyMonk
Images were not showing up; linked to them instead
  • Like 2
Link to comment
Share on other sites

Exact same problem.

2023-02-09 22:35:43.860 Error Trakt: Error sending scrobble
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.4.0-132-generic (buildd@lcy02-amd64-059) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: /var/lib/emby
	Application path: /opt/emby-server/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()

and

2023-02-09 22:38:57.211 Info SessionManager: Playback start reported by app Emby Theater 3.0.19 playing Wish. Started at 41 ms
2023-02-09 22:38:57.211 Info Trakt: Playback Started
2023-02-09 22:38:57.211 Info Server: http/1.1 Response 204 to host3. Time: 3ms. http://192.168.50.31:8096/emby/Sessions/Playing?X-Emby-Client=Emby Theater&X-Emby-Device-Name=HTPC&X-Emby-Device-Id=HTPC&X-Emby-Client-Version=3.0.19&X-Emby-Language=fr&reqformat=json
2023-02-09 22:38:57.212 Info HttpClient: POST https://api.trakt.tv/oauth/token
2023-02-09 22:38:57.231 Info Server: http/1.1 POST http://192.168.50.31:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Theater&X-Emby-Device-Name=HTPC&X-Emby-Device-Id=HTPC&X-Emby-Client-Version=3.0.19&X-Emby-Language=fr&reqformat=json. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) EmbyTheater/3.0.19 Chrome/87.0.4280.141 Electron/11.5.0 Safari/537.36
2023-02-09 22:38:57.233 Info Server: http/1.1 Response 204 to host3. Time: 2ms. http://192.168.50.31:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Theater&X-Emby-Device-Name=HTPC&X-Emby-Device-Id=HTPC&X-Emby-Client-Version=3.0.19&X-Emby-Language=fr&reqformat=json
2023-02-09 22:38:57.600 Error Trakt: Exception handled sending status update
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Linux version 5.4.0-132-generic (buildd@lcy02-amd64-059) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #148-Ubuntu SMP Mon Oct 17 16:02:06 UTC 2
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 12
	Data path: /var/lib/emby
	Application path: /opt/emby-server/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.KernelPlaybackStart(Object sender, PlaybackProgressEventArgs e)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()

 

Edited by BUDDR
  • Like 1
Link to comment
Share on other sites

blue-wizard

I'm also having issues with trakt for Emby.

Error from log is below.

2023-02-15 22:13:42.650 Info HttpClient: POST https://api.trakt.tv/oauth/token
2023-02-15 22:13:42.808 Error Trakt: Error sending playstate updates
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 4.4.180+ (root@build15) (gcc version 8.5.0 (GCC) ) #42962 SMP Wed Sep 21 10:56:47 CST 2022
	Framework: .NET 6.0.8
	OS/Process: x64/x64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 2
	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.SendEpisodePlaystateUpdatesInternalAsync(List`1 episodeChunk, TraktUser traktUser, Boolean seen, CancellationToken cancellationToken)
	   at Trakt.Api.TraktApi.SendEpisodePlaystateUpdates(List`1 episodes, TraktUser traktUser, Boolean forceUpdate, Boolean seen, CancellationToken cancellationToken)
	   at Trakt.Helpers.UserDataManagerEventsHelper.OnTimerCallback(Object state)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()
	

 

Link to comment
Share on other sites

HI, can you try redoing your authentication with the latest update to the Emby trakt plugin? Please see if that helps. Thanks !

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