How to access the request body in the onError callback?
Hi
I'm having trouble getting the request's body (probably plain text) when the following error occurs in the
I've tried to get it with
The code in question:
I would very much like to know what was sent in order to debug - in any case.
The body has to be forwarded to the callback by tRPC, correct? Or is there another way?
I'm having trouble getting the request's body (probably plain text) when the following error occurs in the
fetchRequestHandler:I've tried to get it with
req.text() but as it is already consumed, I cannot access it.The code in question:
I would very much like to know what was sent in order to debug - in any case.
The body has to be forwarded to the callback by tRPC, correct? Or is there another way?