xeon06
xeon06
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
Thanks again!
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
The body that's coming in from my server is of 0 length so looks like that's the problem 🙃
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
All good, I think it might be my server setup. It's a bit unusual. Thanks for the help!
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
Maybe it has to do with the way my server is setup...
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
Full(er) error:
POST http://localhost:3000/trpc/submit?batch=1 400 (Bad Request)

react_devtools_backend.js:4012 TRPCClientError: "input" needs to be an object when doing a batch call
at TRPCClientError.from (transformResult-6fb67924.mjs:4:20)
at httpBatchLink.mjs:190:56

transformResult-6fb67924.mjs:4 Uncaught (in promise) TRPCClientError: "input" needs to be an object when doing a batch call
at TRPCClientError.from (transformResult-6fb67924.mjs:4:20)
at httpBatchLink.mjs:190:56
POST http://localhost:3000/trpc/submit?batch=1 400 (Bad Request)

react_devtools_backend.js:4012 TRPCClientError: "input" needs to be an object when doing a batch call
at TRPCClientError.from (transformResult-6fb67924.mjs:4:20)
at httpBatchLink.mjs:190:56

transformResult-6fb67924.mjs:4 Uncaught (in promise) TRPCClientError: "input" needs to be an object when doing a batch call
at TRPCClientError.from (transformResult-6fb67924.mjs:4:20)
at httpBatchLink.mjs:190:56
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
The above is copy pasted verbatim, except that the mutateAsync call happens in an onClick handler...
13 replies
TtRPC
Created by xeon06 on 1/10/2023 in #❓-help
input needs to be an object when doing a batch call?
If I look at the request, it's a POST request with a ?batch=1 query param. The body is {"0":{"foo":"bar"}}
13 replies
TtRPC
Created by xeon06 on 1/6/2023 in #❓-help
Using `fetchRequestHandler` with other routes?
I'm an idiot, needed a wildcard for my route
2 replies