T
tRPC

trpc error

trpc error

Jjunior111/1/2023
Trpc not working in next js 14 app router. Please help me to resolve
TSTam谩s So贸s11/1/2023
Could you share a repo so i can reproduce your issue?
Jjunior111/2/2023
OK thank you, please here is the link https://github.com/GodwinAdu/pdf-pro.git Please the problem is is the provider.TS.....; path @/components/Provider
Jjunior111/2/2023
No description
Jjunior111/2/2023
this is some of the error messages,: Unreachable code detected.ts(7027) 'QueryClientProvider' refers to a value, but is being used as a type here. Did you mean 'typeof QueryClientProvider'?ts(2749)
Jjunior111/2/2023
No description
Jjunior111/2/2023
But I followed the trpc docs. Please me馃檹馃檹馃檹
TSTam谩s So贸s11/2/2023
I'll check it out in about an hour or so Oh actually, can you try saving it as a tsx file instead of a ts file? Files containing JSX should have a .jsx or .tsx extension.
Jjunior111/2/2023
Ok
TSTam谩s So贸s11/2/2023
Did it work?
Jjunior111/2/2023
Hello please it works, thank you soo much Can I be your friend, I am self learner to become web developer but boss im still having problem the application i will behave if you can help me resolve it Error in the try block: TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11522:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { cause: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:8472:28) at node:internal/deps/undici/undici:8430:50 at Immediate._onImmediate (node:internal/deps/undici/undici:8459:37) at process.processImmediate (node:internal/timers:478:21) at process.callbackTrampoline (node:internal/async_hooks:130:17) { code: 'UND_ERR_CONNECT_TIMEOUT' } } the error is from the @/app/uploadthing/core.ts the fetch in the try block dont work and i dont know what to do again. i hope you can help me that please thank you

Looking for more? Join the community!

T
tRPC

trpc error

Join Server
Recommended Posts
Feature or happy accident: error message from `cause` being used as TRPC's error messageWhen a procedure throws a TRPC error with no message, it turns out that if the thrown error has a caWhen error in tRPC route, the error message is vaugeThere are no line numbers when a runtime error happens in a tRPC route. Surely I am missing somethinHow to have 2 separate trpc clients for http and websockets?I'm trying to have a setup where I can use trpc with 2 separate clients, one for normal HTTP requestHow to configure context for a standalone server?Are there any examples out there on how to set up context for a standalone server? The docs do incluDocs hard to follow with so much `next` codeNot having a great experience with the docs. There are many examples that use `next`, making it hardadding information to the QueryKey that is not part of the procedure inputwe have the situation that we have our trpc routes read some specific information from the browsesr How to make typed error responses in the context of a specific query?Each query has a typed (success) response, although it seems all queries have a shared type for the What's the negative code returned in error responses?What's the negative error code returned in errors responses and how is it meant to be used by the clTRPC File as InputHi can someone pls help me: https://stackoverflow.com/questions/77381516/nextjs-trpc-file-as-input`refetchOnWindowFocus` with RSC?Hi. Is there any way to have `refetchOnWindowFocus` work with server components? Seems like it onlyMulti useSubscription with trpc react -query integration failed to find second subusing trpc in nx monorepo, node version is 20 with yarn. backend is using trpc with express integratIs there any easy way to create a Type for a trpc routerI want to publish a set of trpc api client to npm, which will be used by my customer directly. But iTRPC with Nextjs 13 App RouterIm trying to implement TRPC with my already existing Nextjs 13 App to get typesafe API's. I've managSecurity: DDOS attack prevention for open endpoints tRPCSo we are building an application and got multiple trpc endpoints associated with it, some of them aIs there any information about caching in `@trpc/react-query`?How does query caching work? I want to create library for Angular and I would like to understand Reacache craziness?can someone sanity check something for me? i'm using sst + trpc + drizzleorm + aws + rds + postgretRPC over WebSocket with Next.js and NextAuthHi. I'm trying to set up Next 13 with tRPC over a WebSocket and NextAuth. I got it mostly working wiServer Side Calls in tRPC not working (Next 13, App Router)Where do I make the helper?Project structure ?I greatly appreciate for your insight on this, especially if you're an experienced fullstack dev: BAccess procedures with same names and same parameters, but in different routers, genericallyMy trpc structure looks something like this: ``` trpc - router1 - routerX - proc1 - r