jaiJ
tRPC3y ago
5 replies
jai

Keep getting 500 error response I can't figure out

With both queries and mutations I get back this response saying that there's html in the response and it's invalid json. there's html because I use nextjs and some error is causing an ssr page to be given instead of a trpc error json.

I've tried a few things and have found out that it's not even hitting my middlewares when giving this error. I'm not sure what's causing it. All help appreciated, ask for more info and i will provide 👍

i am using createTRPCProxyClient
image.png
Solution
turns out i forgot to setup env files. it was all working on my pc but i started coding more on my macbook lol
Was this page helpful?