Jonathan
Jonathan3mo ago

TRPC completely broke

I have a project I haven't touched in only about a week, it was working and now every request over TRPC is broke. I have tried everything I can think of and I get responses like the attachment Here is part of my package.json
"@t3-oss/env-nextjs": "^0.8.0",
"@tanstack/react-query": "^5.36.2",
"@trpc/client": "^10.45.2",
"@trpc/next": "^10.45.2",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^10.45.2",
"@t3-oss/env-nextjs": "^0.8.0",
"@tanstack/react-query": "^5.36.2",
"@trpc/client": "^10.45.2",
"@trpc/next": "^10.45.2",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^10.45.2",
Everything related to api requests throw an error, but if it is on the server the db is running fine and such. This was an app that was created with the T3 Stack. I am out of ideas, anywhere I might should look?
2 Replies
Jonathan
Jonathan3mo ago
The request URL looks something like this:
http://localhost:3000/api/trpc/conversations.grid,conversations.count,conversations.count,conversations.count?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22GridParams%22%3A%7B%22skip%22%3A0%2C%22take%22%3A20%7D%2C%22inboxType%22%3A%22mine%22%2C%22closed%22%3Afalse%2C%22sort%22%3A%22Newest%22%7D%7D%2C%221%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22mine%22%7D%7D%2C%222%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22unassigned%22%7D%7D%2C%223%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22all%22%7D%7D%7D
http://localhost:3000/api/trpc/conversations.grid,conversations.count,conversations.count,conversations.count?batch=1&input=%7B%220%22%3A%7B%22json%22%3A%7B%22GridParams%22%3A%7B%22skip%22%3A0%2C%22take%22%3A20%7D%2C%22inboxType%22%3A%22mine%22%2C%22closed%22%3Afalse%2C%22sort%22%3A%22Newest%22%7D%7D%2C%221%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22mine%22%7D%7D%2C%222%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22unassigned%22%7D%7D%2C%223%22%3A%7B%22json%22%3A%7B%22inboxType%22%3A%22all%22%7D%7D%7D
So fairly long but this was all working and now it isn't
infodusha
infodusha3mo ago
So it says you have not added 'use client' directive to the FormContext file