tRPC suppressing server logs?
I noticed that when my tRPc mutation throws an error, the error is sent to the front end but nothing is logged from my server. Is there somewhere I need to update to print all exceptions?
5 Replies
I'd first check if the mutation reaches the server at all, otherwise there won't be anything to find on the server. also posting the specific error might help
so I'm seeing this on my frontend:
Unexpected token 'I', "Internal S"... is not valid JSON
Error Handling | tRPC
Whenever an error occurs in a procedure, tRPC responds to the client with an object that includes an "error" property. This property contains all the information that you need to handle the error in the client.
You'd probably have to log the error there if you want it on server.
turns out the lambd was timing out
and trpc was throwing some strange error