Jump to content

Trakt v2 api update


Luke

Recommended Posts

Scrobbling now working for both episodes and movies. Trakt plugin = 3.0.5508.4336.

 

I tried doing an sync trakt play states before running sync library to trakt, this time it didn't add all the extra junk (issue I was having before). Don't know if it's the plugin being updated or cause I run that task first. Suspect it's running that task first. (Didn't want to run it before because trakt wasn't fully up to date with the API 2.0 issues).

 

So things 'seem' to be working again for me.

Link to comment
Share on other sites

ginjaninja

i'm still getting...

2015-01-30 11:36:04.7930 Info - App: HttpClientManager GET: https://api.trakt.tv/users/myusername/watched/movies
2015-01-30 11:36:07.5408 Error - App: Error getting response from https://api.trakt.tv/users/myusername/watched/movies
	*** Error Report ***
	Version: 3.0.5508.4265
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (412) Precondition Failed.
	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)

on the sync library task

 

i have "skip unwatched import from trakt" ticked

Trakt 3.0.5508.4336

server 3.0.5508.4265

 

i think this precondition failed is new / different to everyone else?

 

edit for the people it is working for

on trakt website under settings does it show media browser as a connected app? mine doesnt..

 

deleted trakt account..created new account...configure un and pw on trakt plugin...same error

must be mising something obvious for it to be working for some ..but not for a freshly created trakt account.

 

removed all media folders..except bare minimum...now its working....looks like one of my media folders was causing it to error...will readd them in and find out which one...

 

edit..no spoke too soon...it definitely got further..task even finished without a fail message in ui ..but now its back to same fail..will remove all media folders and try again..

 

 

no it is working...i am just getting the bad gateway error...still need to see which media folder was causing the original precondition error above..

Edited by ginjaninja
Link to comment
Share on other sites

digger11
edit for the people it is working for

on trakt website under settings does it show media browser as a connected app? mine doesnt..

Although it seems to be working for me, there is nothing shown under connected apps for my account.

  • Like 1
Link to comment
Share on other sites

Vidman

Just installed 3.0.5508.20279 and episode scrobbling is still a no go for me, movies still scrobble tho

Edited by Vidman
Link to comment
Share on other sites

Just installed 3.0.5508.20279 and episode scrobbling is still a no go for me, movies still scrobble tho

 

Mine is working with: 3.0.5508.4336 ...

Link to comment
Share on other sites

Scrobbling now working for both episodes and movies. Trakt plugin = 3.0.5508.4336.

 

I tried doing an sync trakt play states before running sync library to trakt, this time it didn't add all the extra junk (issue I was having before). Don't know if it's the plugin being updated or cause I run that task first. Suspect it's running that task first. (Didn't want to run it before because trakt wasn't fully up to date with the API 2.0 issues).

 

So things 'seem' to be working again for me.

 

Spoke to soon. Just thought I'd have a careful look at Trakt history again today after having a "nightmare" last night about it doing something just like it...

 

Only seemed to do it for movies this time?

 

Is there a way to get MBS to forget all watched statuses and then import them from Trakt - would that 'reset' things or get them in agreement. (Trakt really needs a way of auditing stuff done by the API, pretty scary how badly things could go wrong. Need backups too.)

 

54cc16e55ffb6_trakt.jpg

Link to comment
Share on other sites

Spoke to soon. Just thought I'd have a careful look at Trakt history again today after having a "nightmare" last night about it doing something just like it...

 

Only seemed to do it for movies this time?

 

Is there a way to get MBS to forget all watched statuses and then import them from Trakt - would that 'reset' things or get them in agreement. (Trakt really needs a way of auditing stuff done by the API, pretty scary how badly things could go wrong. Need backups too.)

 

54cc16e55ffb6_trakt.jpg

And both duplicates were inserted at the same time? or it was already there and inserted 1 duplicate?

Link to comment
Share on other sites

Trevor68

uh guys, be careful what you wish for, Scrobbling IS working for me, really, really, really well! It's scobbling TV episodes 3 times each, and a movie about a dozen times (so far).

Link to comment
Share on other sites

ginjaninja
2015-01-31 12:22:48.3431 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.223
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\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)

Now ive removed everything from media folders and just have one mediafolder with one entry for tv....Im getting 401 "unauthorised"..same error whether i have the correct username and password in the plugin configuration or the wrong one...

interesting that gets via the api dont need authorisation.

so according to the logs....all the gets are working..and the posts are unauthorised....

 

any ideas please?

 

 

precondition failed error might have been related to using email address as username...this used to work (in much older versions of plugin)  but perhaps not with the v2 api...sticking to using username..

 

 

 

haha fixed it..

3.0.5508.20279

unless i was incredibly unlucky with typing in my password wrong over 20 times during testing i think there is a problem with reestablishing the auth code for the api

 

after uninstalling....reinstalling plugin...spinning wheel on plugin config (presumably because no config xml yet...then entering username and password...save...and trying sync task again

(i was also trying to knock the config off and on its perch again with incorrect usernames/passwords along the way)

for the first time ever i got

2015-01-31 12:36:36.5434 Info - App: HttpClientManager POST: https://api.trakt.tv/auth/login

and now it works...albeit with expected website timeouts from time to time...

 

I had uninstalled and resinstalled the plugin many times before during the testing...odd that it was working now....

 

odd.. my trakt config xml no longer has a hash for auth..but it is working...must be being stored somewhere else in newer version..perhaps my older xml  version was confusing it...

Edited by ginjaninja
Link to comment
Share on other sites

steve1977

Can someone confirm that syncing the collection / movie library works? Syncing tvshow library does work for me, but syncing the movie library does not. I can provide a log file later, but the issue may be well known anyways?

Link to comment
Share on other sites

ginjaninja

Can someone confirm that syncing the collection / movie library works? Syncing tvshow library does work for me, but syncing the movie library does not. I can provide a log file later, but the issue may be well known anyways?

[smugly] yes syncing movie library is working for me..post a log..i think ive seen all the errors now.
Link to comment
Share on other sites

ginjaninja
2015-02-01 09:29:33.9318 Info - App: HttpClientManager POST: https://api.trakt.tv/auth/login
2015-02-01 09:29:34.7850 Info - App: HttpClientManager GET: https://api.trakt.tv/users/nicholasbird/watched/movies
2015-02-01 09:29:36.9516 Info - App: HttpClientManager GET: https://api.trakt.tv/users/nicholasbird/collection/movies?extended=metadata
2015-02-01 09:29:38.7466 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 45300fe9c17f441a8706ab0dbe45047d
2015-02-01 09:29:38.7466 Debug - HttpServer: Exiting HttpConnection.OnReadInternal because nread=0. ConnectionId: 1f9dcc915d5b48948330d1e069375136
2015-02-01 09:29:44.9912 Info - App: HttpClientManager GET: https://api.trakt.tv/users/nicholasbird/watched/shows
2015-02-01 09:30:00.5757 Info - App: HttpClientManager GET: https://api.trakt.tv/users/nicholasbird/collection/shows?extended=metadata
2015-02-01 09:30:22.3339 Debug - Trakt: Movies to add to Collection: 1126
2015-02-01 09:30:23.0047 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:30:23.2387 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:30:33.2695 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:30:42.6452 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:30:42.9572 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:30:52.9880 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:02.5782 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:02.9214 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:31:12.9491 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:22.7927 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:23.0423 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:31:33.0595 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:43.4335 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:43.7611 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:31:53.7812 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:31:54.0262 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:32:04.0913 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:32:15.5058 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:32:15.7392 Error - App: Error getting response from https://api.trakt.tv/sync/collection
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	The remote server returned an error: (500) Internal Server Error.
	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-02-01 09:32:25.7488 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:32:35.8835 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:32:45.4551 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:32:56.8899 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:33:08.1209 Info - App: IntervalTrigger fired for task: Organize new media files
2015-02-01 09:33:08.1209 Info - App: Executing Organize new media files
2015-02-01 09:33:08.1209 Info - App: Organize new media files Completed after 0 minute(s) and 0 seconds
2015-02-01 09:33:08.1209 Info - ServerManager: Sending web socket message ScheduledTaskEnded
2015-02-01 09:33:10.0242 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:33:20.6584 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:33:32.4811 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 98
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 100
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Movies: 26
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:35.5417 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:35.5417 Debug - Trakt: Movies to set watched: 42
2015-02-01 09:33:35.5417 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/history
2015-02-01 09:33:43.3685 Debug - Trakt: TraktResponse Added Movies: 42
2015-02-01 09:33:43.3685 Debug - Trakt: TraktResponse Added Shows: 0
2015-02-01 09:33:43.3685 Debug - Trakt: TraktResponse Added Seasons: 0
2015-02-01 09:33:43.3685 Debug - Trakt: TraktResponse Added Episodes: 0
2015-02-01 09:33:43.3685 Debug - Trakt: Movies to set unwatched: 0
2015-02-01 09:33:43.3685 Debug - Trakt: Episodes to add to Collection: 23384
2015-02-01 09:33:43.3997 Error - Trakt: Exception handled sending episodes to trakt.tv
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	Specified argument was out of the range of valid values.
	Parameter name: count
	System.ArgumentOutOfRangeException
	   at System.Linq.Enumerable.Range(Int32 start, Int32 count)
	   at Trakt.Api.TraktApi.<SendLibraryUpdateInternalAsync>d__4a.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__2f.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()
	
2015-02-01 09:33:43.3997 Debug - Trakt: Episodes to set watched: 16117
2015-02-01 09:33:43.3997 Error - Trakt: Error updating episode play states
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	Specified argument was out of the range of valid values.
	Parameter name: count
	System.ArgumentOutOfRangeException
	   at System.Linq.Enumerable.Range(Int32 start, Int32 count)
	   at Trakt.Api.TraktApi.<SendEpisodePlaystateUpdatesInternalAsync>d__b2.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.<SendEpisodePlaystateUpdates>d__99.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()
	
2015-02-01 09:33:43.3997 Debug - Trakt: Episodes to set unwatched: 0
2015-02-01 09:33:43.3997 Info - App: Sync library to trakt.tv Completed after 4 minute(s) and 9 seconds

the above is my log...which i believes shows a working plugin....(save api website timeouts errrors etc)

 

with a pinch of salt..as i am only interpreting the logs and have no real understanding of whats going on....

2015-02-01 09:29:33.9318 Info - App: HttpClientManager POST: https://api.trakt.tv/auth/login

This line above seems critical if you want to successfully post changes to the api..i think this shows that the plugin has successfully authenticated with the api

2015-02-01 09:30:22.3339 Debug - Trakt: Movies to add to Collection: 1126
2015-02-01 09:30:23.0047 Info - App: HttpClientManager POST: https://api.trakt.tv/sync/collection

The above lines shows that the plugin is aware of the need to sync content...and then the attempt to sync content (post)

The remote server returned an error: (500) Internal Server Error.

The consensus in this thread seems to suggest 500 errors (500,510,520 etc) are just the service failing at their end...try again later.

 

So reviewing your log....

there are no authentication and no post commands

 

could you paste the trakt plugin configuration xml (hash out the password info)?

 

also try the following

uninstall the plugin

ensure the configuration xml is removed (its under plugins\configurations)

reinstall the plugin...note wether the act of reinstalling plugin creates a blank config xml...

go to the plugin config page in dashboard (note whether you get a spinning wheel on the plugin page after after an uninstall/reinstall - for my own interest)

enter your username (not email) and password..save

and then run sync library task and post log...

 

FWIW it seems the AUTH log line is cached to some extent..the plugin doesnt log this every time the sync task is run...

Edited by ginjaninja
Link to comment
Share on other sites

ginjaninja
2015-02-01 09:56:22.1198 Debug - Trakt: Episodes to add to Collection: 23384
2015-02-01 09:56:22.1510 Error - Trakt: Exception handled sending episodes to trakt.tv
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	Specified argument was out of the range of valid values.
	Parameter name: count
	System.ArgumentOutOfRangeException
	   at System.Linq.Enumerable.Range(Int32 start, Int32 count)
	   at Trakt.Api.TraktApi.<SendLibraryUpdateInternalAsync>d__4a.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__2f.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()
	
2015-02-01 09:56:22.1510 Debug - Trakt: Episodes to set watched: 16117
2015-02-01 09:56:22.1686 Error - Trakt: Error updating episode play states
	*** Error Report ***
	Version: 3.0.5509.41942
	Command line: C:\Users\Nicholas Bird\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\Nicholas Bird\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Nicholas Bird\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe
	Specified argument was out of the range of valid values.
	Parameter name: count
	System.ArgumentOutOfRangeException
	   at System.Linq.Enumerable.Range(Int32 start, Int32 count)
	   at Trakt.Api.TraktApi.<SendEpisodePlaystateUpdatesInternalAsync>d__b2.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.<SendEpisodePlaystateUpdates>d__99.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()
	
2015-02-01 09:56:22.1686 Debug - Trakt: Episodes to set unwatched: 0
2015-02-01 09:56:22.1686 Info - App: Sync library to trakt.tv Completed after 0 minute(s) and 43 seconds

@@Luis

 

Is the api having a problem with sending too many episodes in one go?

Link to comment
Share on other sites

ginjaninja

when i look on trakt website...history...i regularly see two records for the same minute on tv episodes...but never more than 2...so far..but have not done a lot of testing..

Edited by ginjaninja
Link to comment
Share on other sites

ginjaninja
2015-02-02 09:34:46.6797 Debug - Trakt: Movies to add to Collection: 12

despite scheduling a library sync regularly....the plugin never gets to 0 on movies to add to collection...any ideas?

Link to comment
Share on other sites

CBers

Getting errors with Trakt:

 

2015-02-05 09:57:50.2697 Error - App: Error getting response from https://api.trakt.tv/scrobble/start
*** Error Report ***
Version: 3.0.5513.39888
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: (520) Origin Error.
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)

I did see a tweet overnight from @TraktAPI informing people to :

 

Please use the new v2 api URL in your v2 apps. Docs and the google+ community have the details. We’ll be allocating more resources to v2.

 

I assume the latest version of the Trakt plugin is already doing this ??
 
.
Edited by CBers
Link to comment
Share on other sites

thefirstofthe300

The plugin is reporting that I am watching my content 8 hours in the future (coincidentally that is GMT). The logs however show the correct time so I suspect the problem is in the plugin.

 

Sent from my Nexus 7. Pardon my spelling. :)

Link to comment
Share on other sites

CBers

The plugin is reporting that I am watching my content 8 hours in the future (coincidentally that is GMT). The logs however show the correct time so I suspect the problem is in the plugin.

 

Sent from my Nexus 7. Pardon my spelling. :)

Is it the plugin or your profile's timezone on the Trakt site?

Link to comment
Share on other sites

thefirstofthe300

Is it the plugin or your profile's timezone on the Trakt site?

 

It is my timezone being set incorrectly. Didn't realize I had to set that.

 

No problem with the plugin. Just me.

  • Like 1
Link to comment
Share on other sites

2015-02-02 09:34:46.6797 Debug - Trakt: Movies to add to Collection: 12

despite scheduling a library sync regularly....the plugin never gets to 0 on movies to add to collection...any ideas?

 

 

My first guess would be the movies in your library aren't being matched with anything in Trakt. i.e. they can't agree exactly what it is.

Does it stay at 12? Haven't looked mine closely yet to see if it's doing similar. Haven't run the task yet, but will soon seeing as my issue was supposedly fixed (not sure if it's released?)

 

My collection is SOMETIMES getting updated as they're scanned/identified by MBS, and scrobbling seems to be working properly now. So not actually needing to run the task.

Edited by cshaun
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...