jesseward / jellyfin-plugin-lastfm

LastFM plugin for the Jellyfin media system. Fork of the Emby Last.FM plug-in
178 stars 11 forks source link

Jellyfin crashes when scrobbling #35

Closed CutterXYZ closed 2 years ago

CutterXYZ commented 3 years ago

Jellyfin frequently crashes when playing music. This is the log:

[2021-05-31 14:26:12.060 +02:00] [DBG] [62] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.061 +02:00] [DBG] [62] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.082 +02:00] [DBG] [97] Jellyfin.Api.Auth.CustomAuthenticationHandler: Error authenticating with "CustomAuthenticationHandler"
MediaBrowser.Controller.Authentication.AuthenticationException: Request does not contain a token.
   at Emby.Server.Implementations.HttpServer.Security.AuthService.Authenticate(HttpRequest request)
   at Jellyfin.Api.Auth.CustomAuthenticationHandler.HandleAuthenticateAsync()
[2021-05-31 14:26:12.084 +02:00] [DBG] [97] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2021-05-31 14:26:12.085 +02:00] [DBG] [52] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.088 +02:00] [DBG] [52] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.137 +02:00] [FTL] [67] Main: Unhandled Exception
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at Jellyfin.Plugin.Lastfm.ServerEntryPoint.PlaybackStart(Object sender, PlaybackProgressEventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_1(Object state)
   at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
   at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
   at System.Threading.QueueUserWorkItemCallback.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[2021-05-31 14:26:12.312 +02:00] [DBG] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.314 +02:00] [DBG] [10] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was successfully authenticated.
[2021-05-31 14:26:12.329 +02:00] [DBG] [96] Jellyfin.Api.Auth.CustomAuthenticationHandler: Error authenticating with "CustomAuthenticationHandler"
MediaBrowser.Controller.Authentication.AuthenticationException: Request does not contain a token.
   at Emby.Server.Implementations.HttpServer.Security.AuthService.Authenticate(HttpRequest request)
   at Jellyfin.Api.Auth.CustomAuthenticationHandler.HandleAuthenticateAsync()
[2021-05-31 14:26:12.330 +02:00] [DBG] [10] Jellyfin.Api.Helpers.TranscodingJobHelper: PingTranscodingJob PlaySessionId="1622463958313" isUsedPaused: False
[2021-05-31 14:26:12.331 +02:00] [DBG] [96] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: "CustomAuthentication" was not authenticated.
[2021-05-31 14:26:19.484 +02:00] [DBG] [97] Jellyfin.Api.Helpers.TranscodingJobHelper: PingTranscodingJob PlaySessionId="0f6809b23fc643bb884311521984a996" isUsedPaused: False
[2021-05-31 14:26:19.484 +02:00] [DBG] [56] Jellyfin.Api.Helpers.TranscodingJobHelper: PingTranscodingJob PlaySessionId="1622463958313" isUsedPaused: False
[2021-05-31 14:26:19.484 +02:00] [DBG] [95] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "88.163.38.102" received message: WebSocketMessage`1 { MessageType: KeepAlive, MessageId: 00000000-0000-0000-0000-000000000000, ServerId: null, Data: null }