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
Sturlen
Sturlen2y ago
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
Web Dev Cody
Web Dev CodyOP2y ago
so I'm seeing this on my frontend: Unexpected token 'I', "Internal S"... is not valid JSON
dan
dan2y ago
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.
dan
dan2y ago
You'd probably have to log the error there if you want it on server.
Web Dev Cody
Web Dev CodyOP2y ago
turns out the lambd was timing out and trpc was throwing some strange error
Want results from more Discord servers?
Add your server