Jump to content

Trakt sync authorization error?


BEis

Recommended Posts

Trevor68

Yes the entire login process is separate per user.

 

How do you delete a user from trakt plugin? I have a rarely used Emby account called Mobile. It is always displayed first in the trakt plugin, possibly due to alphabetical listing I think. I do not EVER want this account to sync to Trak, but since this PIN validation method, I cannot get trakt to work, at all, not even scrobbling.

 

I got to my Trakt account and generate a pin, I switch to my default account in the emby plugin and enter the pin, then when I hit save, it displays the mobile account again, and now sync just goes to 1000, gazillion, bazillion per cent, and then fails, almost instantly.

Link to comment
Share on other sites

I'm not the original developer of the plugin but i would think you can just blank out the credentials.

Link to comment
Share on other sites

Trevor68

I'm not the original developer of the plugin but i would think you can just blank out the credentials.

 

Doubtful, I never entered it in the first place, I presume the plugin simply loads however many emby accounts exist.

Link to comment
Share on other sites

I'm not quite sure what you mean, but i think you can just blank out the trakt username and password and that should be fine.

Link to comment
Share on other sites

Trevor68

I'm going to presume you only have one account in Emby then, hence no drop down to choose accounts in the plugin.

 

Will take some screenshots and grab some logs when I get home tonight.

Link to comment
Share on other sites

MischaBoender

Also noticed that Trakt had stopped working since November 29. Just entering a PIN didn't help as the logs showed unauthorized errors. So I cleared the PIN, restarted the service and entered a new PIN. After that all was working again.

Link to comment
Share on other sites

  • 5 weeks later...
shred00

After seemingly having been able to authenticate the Emby Trakt plugin with Trakt, when I play something and Emby sends a scrobble/start for it, it's getting a 404 back from Trakt:

2018-01-09 09:37:18.981 Info HttpClient: HttpClientManager POST: https://api.trakt.tv/scrobble/start
2018-01-09 09:37:19.105 Error HttpClient: Error ProtocolError getting response from https://api.trakt.tv/scrobble/start
        *** Error Report ***
        Version: 3.2.60.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 3.13.0.123
        64-Bit OS: False
        64-Bit Process: False
        User Interactive: False
        Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 22:30:49 UTC 2017)
        Processor count: 2
        Program data path: /var/lib/emby-server
        Application directory: /usr/lib/emby-server/bin
        System.Net.WebException: The remote server returned an error: (404) Not Found.
          at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <5641e4edad4f4464ba58c620a7b8ea48>:0 
          at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, S
        System.Net.WebException
          at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <5641e4edad4f4464ba58c620a7b8ea48>:0 
          at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, S
        
2018-01-09 09:37:19.135 Info HttpServer: HTTP Response 200 to fd31:aeb1:48df:0:3b14:e643:83d8:7017. Time: 246ms. http://pvr:8096/emby/videos/17357ff020df7e6125906e4260ec84ee
2018-01-09 09:37:19.142 Error Trakt: Exception handled sending status update
        *** Error Report ***
        Version: 3.2.60.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 3.13.0.123
        64-Bit OS: False
        64-Bit Process: False
        User Interactive: False
        Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 22:30:49 UTC 2017)
        Processor count: 2
        Program data path: /var/lib/emby-server
        Application directory: /usr/lib/emby-server/bin
        MediaBrowser.Model.Net.HttpException: The remote server returned an error: (404) Not Found. ---> System.Net.WebException: The remote server returned an error: (404) 
          at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <5641e4edad4f4464ba58c620a7b8ea48>:0 
          at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, S
           --- End of inner exception stack trace ---
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () [0x00753] in <283e6d64c4f54f1fbcf3f036adb82d8e>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsync>c__async1.MoveNext () [0x00096] in <283e6d64c4f54f1fbcf3f036adb82d8e>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.Api.TraktApi+<PostToTrakt>d__30.MoveNext () [0x003b9] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.Api.TraktApi+<SendEpisodeStatusUpdateAsync>d__9.MoveNext () [0x00354] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.ServerMediator+<KernelPlaybackStart>d__17.MoveNext () [0x00307] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        MediaBrowser.Model.Net.HttpException
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>c__async4.MoveNext () [0x00753] in <283e6d64c4f54f1fbcf3f036adb82d8e>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsync>c__async1.MoveNext () [0x00096] in <283e6d64c4f54f1fbcf3f036adb82d8e>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.Api.TraktApi+<PostToTrakt>d__30.MoveNext () [0x003b9] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.Api.TraktApi+<SendEpisodeStatusUpdateAsync>d__9.MoveNext () [0x00354] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 
          at Trakt.ServerMediator+<KernelPlaybackStart>d__17.MoveNext () [0x00307] in <4bf613fb353f4e1ea29d6948f07a9f6b>:0 
        InnerException: System.Net.WebException
        System.Net.WebException: The remote server returned an error: (404) Not Found.
          at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <5641e4edad4f4464ba58c620a7b8ea48>:0 
          at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, S
          at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <5641e4edad4f4464ba58c620a7b8ea48>:0 
          at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, S
Edited by shred00
Link to comment
Share on other sites

@@shred00, what content is being played? if i had to guess, your content has moviedb or imdb id's that are no longer valid and that's why trakt is sending back a 404 response. If that's true then it's not really a problem with the trakt plugin but more of an issue with your metadata. Thanks !

Link to comment
Share on other sites

shred00

@@Luke, Television show episodes.  So if I go to Edit info for the episodes that are causing this problem the External IDs: for those shows are empty.  Shouldn't they have either the IMDB or TVDB id for the show?

 

None of the shows I have looked at have anything in External IDs: in fact.  Without actually going through every show in my database, I'd hazard to guess that none of them have External IDs: filled in.

Link to comment
Share on other sites

@@Luke, Television show episodes.  So if I go to Edit info for the episodes that are causing this problem the External IDs: for those shows are empty.  Shouldn't they have either the IMDB or TVDB id for the show?

 

No, they don't need it for episodes. The series needs external id's and then the episodes just need season + episode numbers.

Link to comment
Share on other sites

  • 2 years later...
Przemek

Hi, I create account on Trakt.tv and try to sync to my Emby server.I try to import my watching library to trakt but have sync error. I install plugin and check sync to trakt. I also set sheduled tasks in Emby and paste PIN. Do I have to register on the same login name on trakt and Emby?

Link to comment
Share on other sites

On 6/19/2020 at 4:04 PM, Przemek said:

Hi, I create account on Trakt.tv and try to sync to my Emby server.I try to import my watching library to trakt but have sync error. I install plugin and check sync to trakt. I also set sheduled tasks in Emby and paste PIN. Do I have to register on the same login name on trakt and Emby?

Hi there, what is the error?

Link to comment
Share on other sites

Przemek
14 hours ago, Luke said:

Hi there, what is the error?

Hi Luke, sorry for that. I see now when I click on "I" sign next to error notification I see everything:

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.&lt;&gt;c__DisplayClass34_0.&lt;<posttotrakt>b__0&gt;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)</posttotrakt>

When I go to movie on my Emby server and I click Trakt icon on the bottom it sync that  movie to trakt.
Regards Przemek
 

Link to comment
Share on other sites

vdatanet
21 minutes ago, Luke said:

@vdatanet can you provide the same link you provided in the other Trakt topic? Thanks.

 

Link to comment
Share on other sites

Przemek
On 6/23/2020 at 11:26 PM, vdatanet said:

 

Hi, I have Emby installed on linux and cannot find trakt.xml. I search everywhere in /opt/emby-server. I don't have /configuration folder in /opt/emby-server/system/plugins.

Link to comment
Share on other sites

vdatanet
3 hours ago, Przemek said:

Hi, I have Emby installed on linux and cannot find trakt.xml. I search everywhere in /opt/emby-server. I don't have /configuration folder in /opt/emby-server/system/plugins.

Mine is in /var/lib/emby/plugins/configurations

  • Like 1
Link to comment
Share on other sites

Przemek
2 hours ago, vdatanet said:

Mine is in /var/lib/emby/plugins/configurations

Thank you very much. Now works.

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