Red Max
All vanilla client queries fail with 500. Setup problem?
I'm using NextJS but using the vanilla client to integrate trpc calls into my custom hooks. But, even when using the NextJS queries, they also fail with a 500. I am completely stuck with my project until I can get this resolved. Any help is greatly appreciated.
The call requires no input so I have tried it two different ways.
When the router's
.input
is omitted the request URL is /api/trpc/generateRandomWorker?batch=1&input={"0":{"json":null,"meta":{"values":["undefined"]}}}
and returns a 500.
When the router's .input
is z.null()
the request URL is /api/trpc/generateRandomWorker?batch=1&input={"0":{"json":null}}
and returns a 500.
Here is the hook I am using with vanilla client queries and the router setup.
6 replies