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.

3 Replies
harsh-harlequin•2mo ago
might be a bug
can you please create a github issue including a complete reproducer project?
correct-apricotOP•2mo ago
should I create the issue inside Router project ? I didnt see a Start project
harsh-harlequin•2mo ago
yes
router and start live in the same repo