Jump to content

trakt plugin error


saitoh183

Recommended Posts

saitoh183

@@Redshirt

 

After watching my show i often see this in my log:

2014-12-15 20:12:57.2806 Error - App: Error getting response from http://api.trakt.tv/show/scrobble/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb
	The operation has timed out
	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)
	
2014-12-15 20:12:57.2806 Error - Trakt: Exception handled sending status update
	The operation has timed out
	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.<Post>d__2c.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.Api.TraktApi.<SendEpisodeStatusUpdateInternalAsync>d__20.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.<SendEpisodeStatusUpdateAsync>d__18.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.ServerMediator.<KernelPlaybackStopped>d__27.MoveNext()
	InnerException: System.Net.WebException
	The operation has timed out
	   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 still seems to scrobble the episode. So what does the error mean? It tries to scrobble once and fails?

Link to comment
Share on other sites

saitoh183

Hi @@Redshirt,

 

Is there a way for me to figure out which show/episode this line is referring to?

Error - App: Error getting response from http://api.trakt.tv/show/scrobble/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb

It seems to be the only trakt error i keep getting over and over

 

If you have a look at my log you will see and search 77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb you will see it repeats often

 

http://pastebin.com/WcptLBZv 

Link to comment
Share on other sites

Redshirt

Browse to any movie/episode in the web dashboad, then replace the id in the URL with 77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb. That will let you know what item is being a problem.

Link to comment
Share on other sites

saitoh183

@@Redshirt

 

I tried both movie and TV and i get 

14-12-22 10:10:07.4982 Info - HttpServer: Web socket connection closed by client. Reason: Empty
2014-12-22 10:10:07.9822 Error - DtoUtils: ServiceBase<TRequest>::Service Exception
	*** Error Report ***
	Version: 3.0.5464.40000
	Command line: C:\Users\Administrator\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\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
	System.FormatException
	   at System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result)
	   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
	   at System.Guid..ctor(String g)
	   at MediaBrowser.Api.UserLibrary.UserLibraryService.Get(GetItem request)
	   at lambda_method(Closure , Object , Object )
	   at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
	
2014-12-22 10:10:07.9822 Error - HttpServer: Error processing request for /mediabrowser/Users/f6c51e6fd330e59d16f4cc52886702e1/Items/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb
	*** Error Report ***
	Version: 3.0.5464.40000
	Command line: C:\Users\Administrator\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\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
	ServiceStack.HttpError
	No Stack Trace Available

When i replace the URL

 

Original URL : 

http://localhost:8096/mediabrowser/dashboard/itemdetails.html?id=fe8549489c0a339e4f78618540d3c391&context=tv&topParentId=4c836f8411cc39bf311d5267feb5c58f

Replace:

http://localhost:8096/mediabrowser/dashboard/itemdetails.html?id=77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb&context=tv&topParentId=4c836f8411cc39bf311d5267feb5c58f
Edited by saitoh183
Link to comment
Share on other sites

Redshirt

It looks like the server url has changed slitghtly. Just paste the following into your browser. Change localhost to the correct IP if your not testing form the same machine as the server is running on.

http://localhost:8096/mediabrowser/dashboard/itemdetails.html?id=77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb
Edited by Redshirt
Link to comment
Share on other sites

saitoh183

 

It looks like the server url has changed slitghtly. Just paste the following into your browser. Change localhost to the correct IP if your not testing form the same machine as the server is running on.

http://localhost:8096/mediabrowser/dashboard/itemdetails.html?id=77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb

 

@@Redshirt same error

2014-12-22 10:34:56.9820 Info - App: HttpClientManager GET: http://www.mb3admin.com/admin/service/MB3Packages.json
2014-12-22 10:35:01.5602 Info - HttpServer: Web socket connection closed by client. Reason: Empty
2014-12-22 10:35:01.9322 Error - DtoUtils: ServiceBase<TRequest>::Service Exception
	*** Error Report ***
	Version: 3.0.5464.40000
	Command line: C:\Users\Administrator\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\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
	System.FormatException
	   at System.Guid.TryParseGuidWithNoStyle(String guidString, GuidResult& result)
	   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
	   at System.Guid..ctor(String g)
	   at MediaBrowser.Api.UserLibrary.UserLibraryService.Get(GetItem request)
	   at lambda_method(Closure , Object , Object )
	   at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
	
2014-12-22 10:35:01.9322 Error - HttpServer: Error processing request for /mediabrowser/Users/f6c51e6fd330e59d16f4cc52886702e1/Items/77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb
	*** Error Report ***
	Version: 3.0.5464.40000
	Command line: C:\Users\Administrator\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\Administrator\AppData\Roaming\MediaBrowser-Server
	Application Path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
	Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
	ServiceStack.HttpError
	No Stack Trace Available
Link to comment
Share on other sites

Redshirt

I just realized the ID was the Trakt id and not the MB id. I don't know how to look it up. I can't even get to there website right now due to them having technical issues. They are falling apart and I honestly can't waste time on them any more.

Link to comment
Share on other sites

saitoh183

I just realized the ID was the Trakt id and not the MB id. I don't know how to look it up. I can't even get to there website right now due to them having technical issues. They are falling apart and I honestly can't waste time on them any more.

 

@@Redshirt,

 

Ic ...yes i find they are falling apart but werent they suppose to bring out a new API? Its just a shame there isnt an alternative to them ...there used to be Follow.it but that died. There is simkl.com that looks promising but im not sure it will get off the ground...i think they lack exposure but the site  and setup is really sharp looking.

 

Googling trakt.tv 77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb

 

I see many references to mediabrowser forum with the others reporting this same GUID. From my link, it seems to be a movie but others like here http://mediabrowser.tv/community/index.php?/topic/10215-trakt-not-syncing-scrobbled-plex-content/&do=findComment&comment=129138 seem to be something else but the same GUID

Edited by saitoh183
Link to comment
Share on other sites

saitoh183

@@Redshirt and @@Luke

 

googling 77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb , i stumbled on a link to a github fork (which i think doesnt exist anymore since there is only a cached version available) that contains code with the 77449c38c9f4f9b3cdb8d3f9ef0566b167a935eb set to be DevKey. 

 

http://webcache.googleusercontent.com/search?q=cache:RUMvi291REcJ:https://github.com/LukePulverenti/trakt-mb3/blob/master/Trakt/Api/TraktURIs.cs+&cd=5&hl=en&ct=clnk&gl=ca

 

Maybe this can help figure out the reason we are having this constant error (not just me but others and also with this same GUID)?

 

I know trakt api is shit and that its a pain but maybe the above is a clue to a workaround of some sort.

Link to comment
Share on other sites

Redshirt

That number is the dev key that was assigned to the client by trakt.tv. I haven't looked at that section of the code for so long I'd forgotten. That number has to be attached to every url, that's why it's in other peoples logs as well.

 

The error above says 

The operation has timed out

There's nothing I can do to make the website respond.

Link to comment
Share on other sites

saitoh183

@@Redshirt

 

since they are timeouts and bad gateway is there a retry in the code or it just fails and thats all? But even with those failures in the log, stuff still seem to be working, i cant find anything not synced except for the occasional movie or tv show not added to my collection which is maybe linked to the fails in the log?  Also the error happens everytime something is finishes but yet stuff are still updated. 

Edited by saitoh183
Link to comment
Share on other sites

Angelblue05

Yeah, it just seems like a better error handling would maybe work as a workaround. Since the error is basically on Trakt's side, is there a way to set to retry what it was doing, in 60 seconds? Usually, the website goes down for a few seconds. My TV shows keep losing their watch status due to this annoying problem, with the import task trigger. :)

Link to comment
Share on other sites

  • 2 weeks later...
hansolo77

I'm having a similar problem.  I noticed here in the past week my trakt.tv images on various forums weren't working.  I tried to figure out why but can't come up with anything.  According to Media Browser Dashboard, it's failing the sync.  When I go to the trakt.tv website, my profile is still active, but I can't find where the instructions were to create the image.  Is it possible that they updated their website and api so now everything is broken until we manually go back in and change something? 

Link to comment
Share on other sites

saitoh183

I'm having a similar problem.  I noticed here in the past week my trakt.tv images on various forums weren't working.  I tried to figure out why but can't come up with anything.  According to Media Browser Dashboard, it's failing the sync.  When I go to the trakt.tv website, my profile is still active, but I can't find where the instructions were to create the image.  Is it possible that they updated their website and api so now everything is broken until we manually go back in and change something? 

 

Trakt has changed to version 2 so expect issue till migration if fully done and the iron out the bug

Link to comment
Share on other sites

introducing a new api version does not equal problems with the old api, or at least it shouldn't. i think they are just having problems in general right now that are affecting a number of things

Link to comment
Share on other sites

yardameus

It seems like they are doing a revamp, hopefully things are more stable once all the updates are done.

Link to comment
Share on other sites

@@Luke, I'll begin to update the plugin to the api v2  today. Hopefully I can have some progress done.

They introduced a new new api version, but the old one throws server overload constantly (the new one doesn't).

  • Like 4
Link to comment
Share on other sites

oh fantastic, thanks Luis! you  might be able to get it done really quickly using the above sample code from the media portal plugin.

 

in case you guys haven't noticed, i ripped out the library checkboxes where you have to check the libraries to monitor. user profiles should handle that. my intention is to reduce this plugin to the purest form possible so that everything will "just work" without any fuss.

  • Like 1
Link to comment
Share on other sites

yardameus

Any updates here?  I'm liking (but still getting used to) the new Trakt website, hoping to get more use out of it.

Link to comment
Share on other sites

MikePlanet

oh fantastic, thanks Luis! you  might be able to get it done really quickly using the above sample code from the media portal plugin.

 

in case you guys haven't noticed, i ripped out the library checkboxes where you have to check the libraries to monitor. user profiles should handle that. my intention is to reduce this plugin to the purest form possible so that everything will "just work" without any fuss.

Hi Luke,

so that means we'll get another tick box in the user settings if the respective library should be synced with Trakt !? As not all libraries should be synced - I did that in the past with the Trakt settings - but you're completely right that this is a user related setting.

Edited by MikePlanet
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...