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
We are getting a 500 response when the target returns non-2xx code. If the target returns a 200 response, all works well we get the response body in the client. In case the target returns 400, the proxy logs 400 but the client gets a 500 error.
To Reproduce
Since we don't know before hand if the request is to be proxied, we enable request buffering in a middleware. In the controller we get to know if request is to be proxied so an exception is thrown which the CustomExceptionFilter handles in the following manner:
Describe the bug
We are getting a 500 response when the target returns non-2xx code. If the target returns a 200 response, all works well we get the response body in the client. In case the target returns 400, the proxy logs 400 but the client gets a 500 error.
To Reproduce
Since we don't know before hand if the request is to be proxied, we enable request buffering in a middleware. In the controller we get to know if request is to be proxied so an exception is thrown which the CustomExceptionFilter handles in the following manner:
Here is the reverse proxy service:
Got Exceptions? Include both the message and the stack trace
We don't see any specific exception, here are some YARP logs:
Further technical details
The text was updated successfully, but these errors were encountered: