SIMKL / Emby

Simkl plugin for Emby
https://simkl.com/apps/emby/
GNU General Public License v3.0
14 stars 3 forks source link

Crash on Scrobble #6

Closed zacharyrs closed 4 years ago

zacharyrs commented 4 years ago

Seems the Simkl API isn't quite working, so this plugin ended up crashing Emby...

emby-server[496626]: Unhandled Exception: MediaBrowser.Model.Net.HttpException: BadGateway
emby-server[496626]:    at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
emby-server[496626]:    at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
emby-server[496626]:    at Simkl.Api.SimklApi._post(String url, String userToken, Object data)
emby-server[496626]:    at Simkl.Api.SimklApi.SyncHistoryAsync(SimklHistory history, String userToken)
emby-server[496626]:    at Simkl.Api.SimklApi.markAsWatched(BaseItemDto item, String userToken)
emby-server[496626]:    at Simkl.Services.Scrobbler.embyPlaybackProgress(Object sessions, PlaybackProgressEventArgs e)
emby-server[496626]:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
emby-server[496626]: --- End of stack trace from previous location where exception was thrown ---
emby-server[496626]:    at System.Threading.ThreadPoolWorkQueue.Dispatch()
XXX Info HttpClient: Http response 502 from http://private-XXX-simkl.apiary-proxy.com/sync/history after 544ms. HeadersDate=XXX, Connection=keep-alive, X-Apiary-RateLimit-Limit=120, X-Apiary-RateLimit-Remaining=115, x-apiary-transaction-id=XXX, Access-Control-Allow-Origin=*, Access-Control-Allow-Methods=OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT, Access-Control-Max-Age=10
XXX Error HttpClient: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
masyk commented 4 years ago

Seems like there’s an apiary domain used instead of https://api.simkl.com for some reason on your setup

zacharyrs commented 4 years ago

Perhaps I'm running something a bit outdated..?

Simkl-dev commented 4 years ago

Looks like .dll file was compiled with a developer proxy url. Will compile a new one with a correct url.

ekleop commented 4 years ago

Tested, seems like you have an old dll, update it from the repo and everything should be fine.

zacharyrs commented 4 years ago

Yeah, must've been very outdated! Updated it now, so we'll have to see...