Jump to content

Trakt v2 api update


Luke
 Share

Recommended Posts

Luis has helped out and upgraded the plugin to use the new trakt v2 api.

 

I have published it as a beta, which means your server update level needs to be at least beta.

 

Those of you running beta, please submit issues here. thanks.

  • Like 4
Link to comment
Share on other sites

One small thing. You would need to re-enter your username password for trakt. They changed the way it authenticates so the old stored one is useless.

  • Like 4
Link to comment
Share on other sites

Ok, thanks for the info. So when this goes to release we'll do a blog post and newsletter about it to spread the message as best we can.

  • Like 2
Link to comment
Share on other sites

Just updated, and then re-entered my password.  When I go to the scheduled task page to try to manually sync to Trakt or import from Trakt, I get an error.

2015-01-13 22:43:11.4548 Error - App: Error getting response from https://api.trakt.tv/users/jhoff80/watched/movies
	*** Error Report ***
	Version: 3.0.5490.2
	Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (401) Unauthorized.
	System.Net.WebException
	   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
	   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
	
2015-01-13 22:43:11.4548 Error - App: Error
	*** Error Report ***
	Version: 3.0.5490.2
	Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe -service
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (401) Unauthorized.
	MediaBrowser.Model.Net.HttpException
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1e.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsync>d__7.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<Get>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.Api.TraktApi.<GetFromTrakt>d__bf.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.Api.TraktApi.<GetFromTrakt>d__bb.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.Api.TraktApi.<SendGetAllWatchedMoviesRequest>d__78.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<SyncUserLibrary>d__17.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<Execute>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<>c__DisplayClassf.<<ExecuteTask>b__e>d__11.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<Execute>d__6.MoveNext()
	InnerException: System.Net.WebException
	The remote server returned an error: (401) Unauthorized.
	   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
	   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
	
2015-01-13 22:43:11.4548 Info - App: Sync library to trakt.tv Failed after 0 minute(s) and 0 seconds
Link to comment
Share on other sites

@@Luis

 

While your fixing the bug, would it be possible for you to fix the issue in the settings that we cannot blank out a username. like i have a user that i want to remove his account but you cant save a blank field

Link to comment
Share on other sites

@@Luis

 

With Build 3.0.5491.40113 everything works for pulling from trakt and syncing to trakt...didnt noticed any error in log

 

Also does the plugin still sync all accounts or just the trakt account associated with the account your logged on in mbs?

Edited by saitoh183
Link to comment
Share on other sites

The scheduled tasks sync all the users. Just like before.

Eh. It just seems like a lot of wasted time pushing data for nothing. Not every accounts need to be called thru the scheduled tasks. That's just my opinion.

Link to comment
Share on other sites

that's exactly what scheduled tasks are designed for so the plugin is doing the right thing. it is meant to be a periodic background task. the tasks have no concept of a logged in user because they have nothing to do with logging in or out. not what they were designed for. 

 

so someone would have to soup up the plugin config page to not only configure but also manage and perform operations.

Link to comment
Share on other sites

@@Luis

 

While your fixing the bug, would it be possible for you to fix the issue in the settings that we cannot blank out a username. like i have a user that i want to remove his account but you cant save a blank field

The ability to remove a trakt user should be up shortly.

  • Like 1
Link to comment
Share on other sites

Any idea what would cause a "Sequence contains no matching element" error in this version?

 

 

Here is a chunk of the log:

2015-01-14 00:07:32.7481 Info - App: Executing Sync library to trakt.tv
2015-01-14 00:07:32.7481 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/watched/movies
2015-01-14 00:07:32.7481 Debug - HttpServer: HTTP Response 204 to 192.168.1.51. Response time: 6.0016 ms.
	Url: http://192.168.1.2:8096/mediabrowser/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299
2015-01-14 00:07:32.8252 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/ScheduledTasks?isHidden=false
	Ip: 192.168.1.51:63084. Headers: X-MediaBrowser-Token=421f630f09b24765a28aaaa44abe242c,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Authorization=MediaBrowser Client="Dashboard", Device="Firefox 25.1", DeviceId="a39c7010ddb7308168c6e3973ea333bd5a3c3d40", Version="3.0.5490.2", UserId="03630d7ac22eae500fee3f9e33f02846",Host=192.168.1.2:8096,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0
2015-01-14 00:07:32.8282 Debug - HttpServer: HTTP Response 200 to 192.168.1.51. Response time: 4.0006 ms.
	Url: http://192.168.1.2:8096/mediabrowser/ScheduledTasks?isHidden=false
2015-01-14 00:07:32.9257 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/collection/movies?extended=metadata
2015-01-14 00:07:33.0911 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/watched/shows
2015-01-14 00:07:33.3757 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/collection/shows?extended=metadata
2015-01-14 00:07:42.4192 Error - App: Error
	*** Error Report ***
	Version: 3.0.5490.2
	Command line: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Sequence contains no matching element
	System.InvalidOperationException
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<SyncUserLibrary>d__17.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<Execute>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<>c__DisplayClassf.<<ExecuteTask>b__e>d__11.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<Execute>d__6.MoveNext()
	
2015-01-14 00:07:42.4192 Info - App: Sync library to trakt.tv Failed after 0 minute(s) and 9 seconds
2015-01-14 00:07:42.4212 Debug - NotificationManager: Sending notification via Dashboard Notifications to user kfonda
2015-01-14 00:07:42.4212 Info - ServerManager: Sending web socket message NotificationAdded
2015-01-14 00:07:42.4212 Info - ServerManager: Sending web socket message ScheduledTaskEnded
2015-01-14 00:07:42.5382 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/Notifications/03630d7ac22eae500fee3f9e33f02846/Summary
	Ip: 192.168.1.51:63084. Headers: X-MediaBrowser-Token=421f630f09b24765a28aaaa44abe242c,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Authorization=MediaBrowser Client="Dashboard", Device="Firefox 25.1", DeviceId="a39c7010ddb7308168c6e3973ea333bd5a3c3d40", Version="3.0.5490.2", UserId="03630d7ac22eae500fee3f9e33f02846",Host=192.168.1.2:8096,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0
2015-01-14 00:07:42.5463 Debug - HttpServer: HTTP Response 200 to 192.168.1.51. Response time: 2.0103 ms.
	Url: http://192.168.1.2:8096/mediabrowser/Notifications/03630d7ac22eae500fee3f9e33f02846/Summary
2015-01-14 00:07:47.1855 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/System/Logs/Log?name=server-63556790505.txt&api_key=421f630f09b24765a28aaaa44abe242c
	Ip: 192.168.1.51:63084. Headers: Cache-Control=max-age=0,Connection=keep-alive,Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Host=192.168.1.2:8096,If-None-Match=abd736f0d6a6967d767ae4e9197b977a,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0
Edited by kfonda
Link to comment
Share on other sites

thefirstofthe300

Here is my log after running the sync task.  The original errors were probably thrown due to my erratic internet connection.

 

Seems like the plugin isn't matching a bunch of movies that it should be able to.

server-63556780143.txt

Link to comment
Share on other sites

Here is my log after running the sync task.  The original errors were probably thrown due to my erratic internet connection.

 

Seems like the plugin isn't matching a bunch of movies that it should be able to.

Do you mean the :

 

015-01-13 21:10:05.9544 Debug - Trakt: Movie is in Watched list Get Smart
2015-01-13 21:10:05.9552 Debug - Trakt: Movie is in Watched list The Mighty Ducks
2015-01-13 21:10:05.9552 Info - Trakt: Failed to match Airplane!

If that so, is not that the movie is not matched on trakt. It means that the movie is not present on the watched movies on trakt.

Link to comment
Share on other sites

 

Any idea what would cause a "Sequence contains no matching element" error in this version?

 

 

Here is a chunk of the log:

2015-01-14 00:07:32.7481 Info - App: Executing Sync library to trakt.tv
2015-01-14 00:07:32.7481 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/watched/movies
2015-01-14 00:07:32.7481 Debug - HttpServer: HTTP Response 204 to 192.168.1.51. Response time: 6.0016 ms.
	Url: http://192.168.1.2:8096/mediabrowser/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299
2015-01-14 00:07:32.8252 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/ScheduledTasks?isHidden=false
	Ip: 192.168.1.51:63084. Headers: X-MediaBrowser-Token=421f630f09b24765a28aaaa44abe242c,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Authorization=MediaBrowser Client="Dashboard", Device="Firefox 25.1", DeviceId="a39c7010ddb7308168c6e3973ea333bd5a3c3d40", Version="3.0.5490.2", UserId="03630d7ac22eae500fee3f9e33f02846",Host=192.168.1.2:8096,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0
2015-01-14 00:07:32.8282 Debug - HttpServer: HTTP Response 200 to 192.168.1.51. Response time: 4.0006 ms.
	Url: http://192.168.1.2:8096/mediabrowser/ScheduledTasks?isHidden=false
2015-01-14 00:07:32.9257 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/collection/movies?extended=metadata
2015-01-14 00:07:33.0911 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/watched/shows
2015-01-14 00:07:33.3757 Info - App: HttpClientManager GET: https://api.trakt.tv/users/kfonda/collection/shows?extended=metadata
2015-01-14 00:07:42.4192 Error - App: Error
	*** Error Report ***
	Version: 3.0.5490.2
	Command line: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	Processor count: 4
	64-Bit OS: True
	64-Bit Process: False
	Program data path: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\SysAdmin\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Sequence contains no matching element
	System.InvalidOperationException
	   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<SyncUserLibrary>d__17.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Trakt.ScheduledTasks.SyncLibraryTask.<Execute>d__2.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<>c__DisplayClassf.<<ExecuteTask>b__e>d__11.MoveNext()
	--- End of stack trace from previous location where exception was thrown ---
	   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<Execute>d__6.MoveNext()
	
2015-01-14 00:07:42.4192 Info - App: Sync library to trakt.tv Failed after 0 minute(s) and 9 seconds
2015-01-14 00:07:42.4212 Debug - NotificationManager: Sending notification via Dashboard Notifications to user kfonda
2015-01-14 00:07:42.4212 Info - ServerManager: Sending web socket message NotificationAdded
2015-01-14 00:07:42.4212 Info - ServerManager: Sending web socket message ScheduledTaskEnded
2015-01-14 00:07:42.5382 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/Notifications/03630d7ac22eae500fee3f9e33f02846/Summary
	Ip: 192.168.1.51:63084. Headers: X-MediaBrowser-Token=421f630f09b24765a28aaaa44abe242c,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Authorization=MediaBrowser Client="Dashboard", Device="Firefox 25.1", DeviceId="a39c7010ddb7308168c6e3973ea333bd5a3c3d40", Version="3.0.5490.2", UserId="03630d7ac22eae500fee3f9e33f02846",Host=192.168.1.2:8096,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0
2015-01-14 00:07:42.5463 Debug - HttpServer: HTTP Response 200 to 192.168.1.51. Response time: 2.0103 ms.
	Url: http://192.168.1.2:8096/mediabrowser/Notifications/03630d7ac22eae500fee3f9e33f02846/Summary
2015-01-14 00:07:47.1855 Debug - HttpServer: HTTP GET http://192.168.1.2:8096/mediabrowser/System/Logs/Log?name=server-63556790505.txt&api_key=421f630f09b24765a28aaaa44abe242c
	Ip: 192.168.1.51:63084. Headers: Cache-Control=max-age=0,Connection=keep-alive,Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.5,Host=192.168.1.2:8096,If-None-Match=abd736f0d6a6967d767ae4e9197b977a,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.1) Gecko/20141110 Firefox/31.9 PaleMoon/25.1.0

I'll be fixed on the next update.

Link to comment
Share on other sites

thefirstofthe300

Do you mean the :

 

015-01-13 21:10:05.9544 Debug - Trakt: Movie is in Watched list Get Smart
2015-01-13 21:10:05.9552 Debug - Trakt: Movie is in Watched list The Mighty Ducks
2015-01-13 21:10:05.9552 Info - Trakt: Failed to match Airplane!

If that so, is not that the movie is not matched on trakt. It means that the movie is not present on the watched movies on trakt.

 

Yes, that is what I was referring to.

 

So that is what that means. :)

Link to comment
Share on other sites

I am running 3.0.5491.42668 and I do not have a way to add locations to monitor.

 

In the config screen, all I get is my Trakt username and password.

Link to comment
Share on other sites

I am running 3.0.5491.42668 and I do not have a way to add locations to monitor.

 

In the config screen, all I get is my Trakt username and password.

I believe it has been removed so that all media is reported.

 

I would prefer it to be there as well.

Link to comment
Share on other sites

I believe it has been removed so that all media is reported.

 

I would prefer it to be there as well.

 

Ah, thanks. I was not aware of that. I just installed it for the first time yesterday and saw screen caps in other topics that listed them. I will see if it works then.

Link to comment
Share on other sites

Getting error messages in MBS log relating to Trakt sync, following latest update (v3.0.5492.20429):

 

2015-01-14 16:34:01.6028 Error - App: Error getting response from https://api.trakt.tv/auth/login
*** Error Report ***
Version: 3.0.5492.946
Command line: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
Processor count: 4
64-Bit OS: True
64-Bit Process: False
Program data path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server
Application Path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
The remote server returned an error: (400) Bad Request.
System.Net.WebException
  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
2015-01-14 16:34:01.6028 Error - Trakt: Exception handled processing queued movie events
*** Error Report ***
Version: 3.0.5492.946
Command line: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
Processor count: 4
64-Bit OS: True
64-Bit Process: False
Program data path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server
Application Path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
The remote server returned an error: (400) Bad Request.
MediaBrowser.Model.Net.HttpException
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__1e.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<PostToTrakt>d__c9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<PostToTrakt>d__c5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<GetUserToken>d__b6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<SetRequestHeaders>d__cf.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<PostToTrakt>d__c9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Api.TraktApi.<SendLibraryUpdateAsync>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Trakt.Helpers.LibraryManagerEventsHelper.<ProcessQueuedMovieEvents>d__1b.MoveNext()
InnerException: System.Net.WebException
The remote server returned an error: (400) Bad Request.
  at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
  at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
2015-01-14 16:34:59.7251 Error - Trakt: Error updating episode play states
*** Error Report ***
Version: 3.0.5492.946
Command line: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
Processor count: 4
64-Bit OS: True
64-Bit Process: False
Program data path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server
Application Path: C:\Users\Media\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
Object reference not set to an instance of an object.
System.NullReferenceException
  at Trakt.ScheduledTasks.SyncLibraryTask.LogTraktResponseDataContract(TraktSyncResponse dataContract)
  at Trakt.ScheduledTasks.SyncLibraryTask.<SyncUserLibrary>d__17.MoveNext()
 

The sync does complete though.

 

Edited by CBers
Link to comment
Share on other sites

also getting an error. "The remote server returned an error. (502) Bad Gateway" while trying to sync library to trakt

2015-01-15 21:19:03.9465 Info - App: Executing Sync library to trakt.tv
2015-01-15 21:19:03.9465 Debug - HttpServer: HTTP Response 204 to 192.168.1.69. Response time: 1.0002 ms.
	Url: http://192.168.1.72:8096/mediabrowser/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299
2015-01-15 21:19:03.9465 Info - App: HttpClientManager GET: https://api.trakt.tv/users/Swynol/watched/movies
2015-01-15 21:19:03.9465 Debug - HttpServer: HTTP GET http://192.168.1.72:8096/mediabrowser/ScheduledTasks?isHidden=false
	Ip: 192.168.1.69:49872. Headers: Host=192.168.1.72:8096,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,X-MediaBrowser-Token=2f136d4f7f274fc3a380b08da5d0e566,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 39.0.2171.95", DeviceId="54bfca8547ffaa5fbbca2339bf61d16de7f31bca", Version="3.0.5490.2", UserId="2bfe38890f44ce5def4afb14e59f3d3b",Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8
2015-01-15 21:19:03.9550 Debug - HttpServer: HTTP Response 200 to 192.168.1.69. Response time: 2.0002 ms.
	Url: http://192.168.1.72:8096/mediabrowser/ScheduledTasks?isHidden=false
2015-01-15 21:19:04.3821 Error - App: Error getting response from https://api.trakt.tv/users/Swynol/watched/movies
Link to comment
Share on other sites

also getting an error. "The remote server returned an error. (502) Bad Gateway" while trying to sync library to trakt

2015-01-15 21:19:03.9465 Info - App: Executing Sync library to trakt.tv
2015-01-15 21:19:03.9465 Debug - HttpServer: HTTP Response 204 to 192.168.1.69. Response time: 1.0002 ms.
	Url: http://192.168.1.72:8096/mediabrowser/ScheduledTasks/Running/b1a52e63d5fb09335557d4f1e6402299
2015-01-15 21:19:03.9465 Info - App: HttpClientManager GET: https://api.trakt.tv/users/Swynol/watched/movies
2015-01-15 21:19:03.9465 Debug - HttpServer: HTTP GET http://192.168.1.72:8096/mediabrowser/ScheduledTasks?isHidden=false
	Ip: 192.168.1.69:49872. Headers: Host=192.168.1.72:8096,Connection=keep-alive,Accept=application/json, text/javascript, */*; q=0.01,X-MediaBrowser-Token=2f136d4f7f274fc3a380b08da5d0e566,User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36,Authorization=MediaBrowser Client="Dashboard", Device="Chrome 39.0.2171.95", DeviceId="54bfca8547ffaa5fbbca2339bf61d16de7f31bca", Version="3.0.5490.2", UserId="2bfe38890f44ce5def4afb14e59f3d3b",Accept-Encoding=gzip, deflate, sdch,Accept-Language=en-US,en;q=0.8
2015-01-15 21:19:03.9550 Debug - HttpServer: HTTP Response 200 to 192.168.1.69. Response time: 2.0002 ms.
	Url: http://192.168.1.72:8096/mediabrowser/ScheduledTasks?isHidden=false
2015-01-15 21:19:04.3821 Error - App: Error getting response from https://api.trakt.tv/users/Swynol/watched/movies
 
That error is on their servers. They still have connectivity issues since the upgrade. Just try again after some minutes.
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...