Cloud9Developer / Jellyfin-Newsletter-Plugin

GNU General Public License v3.0
66 stars 7 forks source link

Error when accessing the API docs #87

Closed BLACK4585 closed 1 month ago

BLACK4585 commented 2 months ago

I get this error in the console when I try to access the Jellyfin API docs.

[12:11:20] [ERR] [68] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL GET /api-docs/openapi.json.
   at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GenerateOperations(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Ambiguous HTTP method for action - Jellyfin.Plugin.Newsletters.Emails.EMAIL.Smtp.NewsletterDbIsPopulated (Jellyfin.Plugin.Newsletters). Actions require an explicit HttpMethod binding for Swagger/OpenAPI 3.0
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GeneratePaths(IEnumerable`1 apiDescriptions, SchemaRepository schemaRepository)
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
Cloud9Developer commented 1 month ago

Not sure this has anything to do with the Newsletter plugin?

BLACK4585 commented 1 month ago

I strongly think so, since it mentions it in the error directly.

jumoog commented 1 month ago

I had the same problem jumoog/intro-skipper@8ab58de (#74)