Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bangumi登录授权错误 #132

Open
MATRIX06060 opened this issue Jun 19, 2024 · 13 comments
Open

bangumi登录授权错误 #132

MATRIX06060 opened this issue Jun 19, 2024 · 13 comments

Comments

@MATRIX06060
Copy link

bgm.tv的登陆授权变成了这个样子
image
image

@kookxiang
Copy link
Owner

发一下 500 期间的日志

@Joackk
Copy link

Joackk commented Jul 1, 2024

发一下 500 期间的日志

[2024-07-01 13:55:13.700 +08:00] [ERR] [37] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Plugins/Bangumi/OAuth".
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: NotTimeValid
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at Microsoft.Extensions.Http.Logging.LoggingScopeHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) at Jellyfin.Plugin.Bangumi.OAuth.OAuthController.OAuthCallback(String code, String user) at lambda_method1178(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.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.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.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2024-07-01 13:55:13.708 +08:00] [WRN] [37] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.31.39:8096/Plugins/Bangumi/OAuth?user=c245d784aebe40469e0caf4af30a3048&code=*******************" to "192.168.31.109" in 0:00:01.0819083 with Status Code 500

@kookxiang
Copy link
Owner

直接访问一下 https://bgm.tv 看看?感觉大概率是被 DNS 污染了

@Joackk
Copy link

Joackk commented Jul 1, 2024

直接访问一下 https://bgm.tv 看看?感觉大概率是被 DNS 污染了

访问是没问题,我是挂着梯子的。可能是版本问题?我实在nas上装的套件,但套件里只有老版本的,所以只能安装1.6.0之前的版本,我在虚拟机装一下最新版试试

@Joackk
Copy link

Joackk commented Jul 1, 2024

直接访问一下 https://bgm.tv 看看?感觉大概率是被 DNS 污染了

我搜了这个问题,倒是有几个类似的,似乎是证书问题?我用的自签名证书,他好像会校验使用的证书是不是可信的

@Joackk
Copy link

Joackk commented Jul 1, 2024

@kookxiang 我用了最新版的jellyfin和插件还是存在一样问题吗,应该是证书导致的,我用的是自签名证书,看到似乎有一篇类似问题的文章,大佬看看是否有帮助?https://blog.csdn.net/qq_37655399/article/details/125672387

@kookxiang
Copy link
Owner

访问是没问题,我是挂着梯子的。

如果你需要挂梯子才能访问的话,需要给 jellyfin 也挂上梯子
这个提示是 jellyfin 访问 bgm.tv 的证书无效,与你本地的证书无关

@Joackk
Copy link

Joackk commented Jul 1, 2024

感谢大佬,似乎是代理+NDS的问题,我把nas的DNS改成了谷歌的,然后把代理也关了,正常授权了

@Dylanaster
Copy link

Dylanaster commented Jul 8, 2024

大佬,麻烦看看我的,也是同样的错误

image

@kookxiang
Copy link
Owner

超时,多试几次或者给 jellyfin 挂梯子

@Jasoncnnn
Copy link

感谢大佬,似乎是代理+NDS的问题,我把nas的DNS改成了谷歌的,然后把代理也关了,正常授权了

大佬,咋解决的啊,我看了下日志也是访问超时,网页打开bgm.tv是没问题的,没挂梯子

@Jasoncnnn
Copy link

感谢大佬,似乎是代理+NDS的问题,我把nas的DNS改成了谷歌的,然后把代理也关了,正常授权了

大佬,咋解决的啊,我看了下日志也是访问超时,网页打开bgm.tv是没问题的,没挂梯子

我靠,刚说完,然后开启ipv6就能授权了。。

@Joackk
Copy link

Joackk commented Jul 31, 2024

感谢大佬,似乎是代理+NDS的问题,我把nas的DNS改成了谷歌的,然后把代理也关了,正常授权了

大佬,咋解决的啊,我看了下日志也是访问超时,网页打开bgm.tv是没问题的,没挂梯子

我靠,刚说完,然后开启ipv6就能授权了。。

感觉是DNS解析问题,可能是被污染了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants