How to make tRPC calls from the server side

I have tried following https://trpc.io/docs/server-side-calls however I get the error shown in screenshot Is it possible to call one tRPC method, from another on the server side?
Server Side Calls | tRPC
You may need to call your procedure(s) directly from the server, createCaller() function returns you an instance of RouterCaller able to execute queries and mutations.
3 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yoers
Yoers•2y ago
Aah perfect, will look into that thanks both 🙂
JJ Rise
JJ Rise•2y ago
@yoers did you have any luck with this? I'm using createContextInner and passing 'session: null'... but getting an arbitrary {"code":"INTERNAL_SERVER_ERROR","name":"TRPCError"}
Want results from more Discord servers?
Add your server