Replies: 1 comment
-
I tested with other kinds of errors, i.e. manually returned from the handler. The middleware runs, but the context passed to the error handler is not the one from the request. I have no idea how I could overcome. How to access the requests context from convinience error handler. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have a middleware that adds some meta headers like request and correlation id to request/response.
I noticed that the middleware is not used on the `NewError handler.
I tested this with request validation error. It would probably work if the handler returns an error or even on response validation. But it would be more useful if it would always run, imo.
Example Code
Beta Was this translation helpful? Give feedback.
All reactions