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:
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...
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)
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...