You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A clear and concise description of what the bug is.
To Reproduce
The request is for the same address, and the following problems will appear randomly on each refresh
💀 Status Code: 502; Bad Gateway
[2023-09-08 10:07:42 INF] (23) Proxying to https://localhost:8661/swagger/Default/swagger.json HTTP/2 RequestVersionOrLower no-streaming
[2023-09-08 10:07:42 INF] (27) Request: An error was encountered before receiving a response.
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.IO.IOException: Cannot determine the frame size or a corrupted frame was received.
at System.Net.Security.SslStream.ReceiveBlobAsync[TIOAdapter](TIOAdapter adapter)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Boolean async, Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttp2ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at Yarp.ReverseProxy.Forwarder.HttpForwarder.SendAsync(HttpContext context, String destinationPrefix, HttpMessageInvoker httpClient, ForwarderRequestConfig requestConfig, HttpTransformer transformer)
💀 Value cannot be null. (Parameter 'destinationPrefix')
[2023-09-08 10:09:09 ERR] (24) 耗时:1065ms,系统异常:/api/emr-swagger
System.ArgumentNullException: Value cannot be null. (Parameter 'destinationPrefix')
at Yarp.ReverseProxy.Forwarder.HttpForwarder.SendAsync(HttpContext context, String destinationPrefix, HttpMessageInvoker httpClient, ForwarderRequestConfig requestConfig, HttpTransformer transformer)
at Yarp.ReverseProxy.Forwarder.ForwarderMiddleware.Invoke(HttpContext context)
at Yarp.ReverseProxy.Health.PassiveHealthCheckMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at TWZHIS.Cloud.Middlewares.ApiLogMildd.InvokeAsync(HttpContext context) in D:\ln2023\WorkProject\TWZHIS.Cloud\TWZHIS.Cloud.Extensions\Middlewares\ApiLogMildd.cs:line 87
I only do the configuration, in addition to no additional control in the code
↓ code vew
Further technical details
Use Windows 😗
TargetFramework:net5.0 😍
PackageReference:Yarp.ReverseProxy 1.1.2 😍
😥 In addition, my English level and professional technology level is low, I want to claim the company encountered when using yarp has problem, if you can, can help analyze the problem of what might be the reason
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
The request is for the same address, and the following problems will appear randomly on each refresh
Here's my configuration
↓ code vew
Further technical details
😥 In addition, my English level and professional technology level is low, I want to claim the company encountered when using yarp has problem, if you can, can help analyze the problem of what might be the reason
The text was updated successfully, but these errors were encountered: