T
TanStack11h ago
equal-aqua

How to throw a error in a middleware and catch it on parent middleware

I have 2 middleware like the image, but A middleware is not catching anything and the Error is sending to client but it fails because a class is not serializable g [Error]: The value [object Object] of type "object" cannot be parsed/serialized.
No description
3 Replies
xenial-black
xenial-black11h ago
might be a bug can you please create a github issue including a complete reproducer project?
equal-aqua
equal-aquaOP11h ago
should I create the issue inside Router project ? I didnt see a Start project
xenial-black
xenial-black11h ago
yes router and start live in the same repo

Did you find this page helpful?