Viperinius / jellyfin-plugin-spotify-import

Import playlists from Spotify in Jellyfin
GNU General Public License v3.0
29 stars 2 forks source link

Authorize error 500 #31

Closed sebastienwood closed 4 months ago

sebastienwood commented 4 months ago

Description When trying to configure the plugins Spotify Client ID field, an error 500 is reported in the console (onClick of the Authorize button in the configuration panel) while following the instructions in the readme. My Spotify dashboard is as follow: image

Logs On the console side: image

On the logs side:

[2024-05-19 14:03:50.115 +02:00] [ERR] [35] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "POST" "/Viperinius.Plugin.SpotifyImport/SpotifyAuth".
System.InvalidOperationException: The AuthorizationPolicy named: 'DefaultAuthorization' was not found.
   at Microsoft.AspNetCore.Authorization.AuthorizationPolicy.CombineAsync(IAuthorizationPolicyProvider policyProvider, IEnumerable`1 authorizeData, IEnumerable`1 policies)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
Viperinius commented 4 months ago

Are you seeing this on Jellyfin version 10.9?

sebastienwood commented 4 months ago

@Viperinius yes on 10.9.1

Viperinius commented 4 months ago

Thanks, I found the issue, something I missed when updating to support 10.9.

~A hotfix will be released in a few minutes~ A fix is now available in 1.8.1.0, please check if it works for you now :)

sebastienwood commented 4 months ago

It works perfectly, thanks !