Félix
TTCTheo's Typesafe Cult
•Created by Félix on 11/1/2023 in #questions
trpc fetch failed in server actions: Request body length does not match content-length header
Hello guys !
I was trying out the new t3-app boilerplate with the app router and in the example, we have:
- Two queries in server side (hello and latest post)
- A mutation in client side (create post)
I tried to create a mutation in server side like so:
But i have this error message: with code
Is trpc mutation supported in server actions or am I doing something impossible ?
I suspect it's due to error headers are set for trpc in the server side but i'm not sure...
8 replies