Replies: 2 comments
-
forgot to mention, I am using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Its resolved from the Discord of the t3 Stack, I was missing some headers:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code speaks for itself. I want to invalidate a trpc query in a server action but I get a super weird error. (I know I can do it with state and client component). Is there a way to do that in the server action ?
Maybe the premise is wrong and you can help me. I'm trying to invalidate a trpc query from within a server action. I know this works with next13 using
revalidate('/path')
for the whole page, but I'd like to do it granularly to a trpc query. Do you think is possible?Error: Unhandled Runtime Error
Error: invalid json response body at http://localhost:3000/api/trpc/user.myName,post.getLatest?batch=1&input=%7B"0"%3A%7B"json"%3Anull%2C"meta"%3A%7B"values"%3A%5B"undefined"%5D%7D%7D%2C"1"%3A%7B"json"%3Anull%2C"meta"%3A%7B"values"%3A%5B"undefined"%5D%7D%7D%7D reason: Unexpected token I in JSON at position 0
Beta Was this translation helpful? Give feedback.
All reactions