t
tRPC
J
tRPC
•
3y ago
•
3 replies
Joe
tRPC onError
I am using tRPC with Fastify and would like to be able to report issues when we get an error
.
https://trpc.io/docs/server/error-handling#handling-errors
It mentions we have a onError function
, but I only see it inside
:
createNextApiHandler
How can I get access to this not using Next
? Am I just missing something
?
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
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Question about onError and modifying error messages in tRPC
P
pes04 / ❓-help
10mo ago
onError callback type
M
Mugetsu / ❓-help
2y ago
clear cookie onError
T
TkDodo 🔮 / ❓-help
4y ago
onSuccess and onError in one time
S
Szymon / ❓-help
15mo ago