T
tRPC

Keep getting 500 error response I can't figure out

Keep getting 500 error response I can't figure out

Jjaiv7/14/2023
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
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
Jump to solution
Jjaiv7/14/2023
Jjaiv7/16/2023
anyone have an idea?
Solution
Jjaiv7/16/2023
turns out i forgot to setup env files. it was all working on my pc but i started coding more on my macbook lol

Looking for more? Join the community!

T
tRPC

Keep getting 500 error response I can't figure out

Join Server
Recommended Posts
tRPC & redux toolkit queryNode 18, pnpm, ts, vite, toolkit. Cant find any proper info how to use tRPC with toolkit query; If Ihow can I globally set a "middleware" callback for all onErrors on my React Query calls?this is a little specific but Im struggling on it Im using the TRPC server as a BFF for my backend Upgrading from tRPC v9 and NextJS v12. Should I upgrade NextJS first or tRPC?I have an app built from the tRPC + NextJS + Prisma starter, and I'd like to upgrade from tRPC v9 anprefetchinfinite not working when inputs are differentIve been trying to figure out why prefetching doesnt work when the inputs are different between preftRPC + App directory + SSR - current state?What is the current state of the technologies working together with or without SSR? It looks like soHydration failed because the initial UI does not match what was rendered on the server```Unhandled Runtime Error Error: Hydration failed because the initial UI does not match what was reReact tsc starts checking server typesMy tsconfig files are different on the server and client. When I run "tsc" on react client, It is trNextJS 13 Build failingIssue also seen in this PR  https://github.com/trpc/trpc/pull/4574 I found. None of the webpack workGoogle OAuth callbackany one help how to handle google oauth callbackurl using tRPCInfering query/mutation callback opts parameterHey 🙂 Thanks for your hard work on this awesome library. I want to create tRPC router, but i want Type helpers to match available pathsGiven a router like this: ```typescript const appRouter = t.router({ post: t.router({ list: t.Best way of handling recurring events through NextJs and tRPCHi, I'm working on a project that handles users' "bonuses" and I need to refill these bonuses every