Jump to content

Trakt no longer working after upgrading to v 4.0.0.2


Recommended Posts

Posted

I can no longer sync with Trakt after upgrading. I did generate and safve a new PIN in the trakt plugin settings, but I'm still getting authentication errors:

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__DisplayClass30_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)
at Trakt.Api.TraktApi.SetRequestHeaders(HttpRequestOptions options, TraktUser traktUser)
at Trakt.Api.TraktApi.GetFromTrakt(String url, CancellationToken cancellationToken, TraktUser traktUser)
at Trakt.Api.TraktApi.SendGetAllWatchedMoviesRequest(TraktUser traktUser)
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)

When I go back to the Trakt plugin configuration I still see the PIN I created. According to the help text in the plugin this should be replaced for tokens on the next request to the Trakt API. This does not seem to happen.

Posted

Feel free to move this thread to the Plugin sub-forum :)

Posted

Please attach the complete emby server log, thanks.

Posted (edited)

I triggered the scheduled tasks for Trakt, here is the server log attached.

embyserver.txt

Edited by chjohans
Posted

Ok, you have a lot of plugins instlalled. The more of them that you're willing to remove, the faster your scan will go. Also you could turn off chapter image extraction for your libraries and that should help get you through the scan quicker.

Posted

I'm not removing any plugins, and this has been working just fine as it is for a very long time.

 

I just would Trakt to work again, how is that relevant to what you write re removing plugins and scan times?

Posted

Many plugins will interact with the library scan and therefore cause it to take longer. I'm not suggesting you remove them, I'm simply providing you with the information that all of these things come with a cost.

Posted

I perfectly understands that, thanks. But this thread is about the Trakt plugin not working, why are you talking about scan times?

 

By the way I have two installations with the exact same plugins, exact same libraries (fairly extensive), the hardware is pretty much the same too. The only difference is the Live TV sources. WHile one have yet to finish it's initial scan (takes forever - you have read my post re that) the other server is doing just fine with a scan time of about 11 minutes for my library after the initial scan. With server 3.5.x the scan times were about 12-13 minutes, so I don't see the huge difference that was advertised but I sure has a lot of issues with the upgrade :)

 

Anyhow that info should probably go in the other thread, this is really about Trakt and Trakt authentication not working. So I don't understand at all why you bring up my number of plugins and scan times here, is that relevant to Trakt not working?

dranderson402
Posted

When I first upgraded my trakt plugin didn't work. I actually had to get a new pin twice. Here are the steps I took.

 

1. got a new pin and clicked save

2. went to scheduled tasks and tried to sync to trakt but failed

3. back to plugin and get new pin again. Was same pin but saved again.

4. back to scheduled tasks and ran sync. Worked!

Posted

Ok trhanks, I have tried this about 20 times with the difference that I have generated a new pin each time instead of saving the same PIN that I already had saved. But I'll try your method and post back, thanks again.

Posted (edited)

Thanks again @@dranderson402, this actually helped and the Trakt scheduled tasks are now working again. Before this I had tried to generate a new trakt PIN at least 20 times, and verified that it was actually saved in trakt plugin config. What I did this time was to press "Save" several times after generating a new PIN, and when running the trakt tasks after that authentication actually worked and the tasks finished.

 

Now this was on two servers, and I've been generating trakt PINs on both trying to get this to work for two days. So it's not a case of "I forgot to save the PIN" in the trakt plugin config.

 

As strange as this sounds, pressing save twice or more seems like what solved this for me. Although this does not seem logical to me. But just about 30 minutes before this I generated a new PIN and tried Trakt again and it didn't work that time.

 

I did notice that Trakt had a technical issue and was down for a moment at least on two occasions the past two days. It's a slight possibility I guiess that the explanation might be that those times I tried to autheticate with Trakt with a new PIN they had an issue that prevented this, and since the PIN is one time use it might have been rejected after that. But I generated a new PIN at more than 10 times, at different times, so I'm skeptical to that theory.

 

In any case, Trakt works again for me now.  :)

Edited by chjohans
Posted

Thanks for the feedback.

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