ferdy
ferdy
TtRPC
Created by ferdy on 7/19/2023 in #❓-help
trpc client request size limits?
I am sending a pretty sizable request and am seeing
[TRPCClientError: JSON Parse error: Unexpected token: <]
[TRPCClientError: JSON Parse error: Unexpected token: <]
I am not sure where the unexpected token is coming from or how to further debug this. My trpc client looks like
this.trpcClient = createTRPCProxyClient<TendrelAppRouter>({
links: [
loggerLink(
enabled: _ => true
}),
httpBatchLink({
url: stage.endpoint,
headers: () => ({ bearer: this.workerAuthToken }),
})
],
transformer: superjson
});
}
this.trpcClient = createTRPCProxyClient<TendrelAppRouter>({
links: [
loggerLink(
enabled: _ => true
}),
httpBatchLink({
url: stage.endpoint,
headers: () => ({ bearer: this.workerAuthToken }),
})
],
transformer: superjson
});
}
2 replies
TtRPC
Created by ferdy on 5/8/2023 in #❓-help
How to use createCaller() with lambda for testing?
Has anyone successfully mocked a trpc caller that uses the AWS Lambda integration? trying to write some unit tests
3 replies
TtRPC
Created by ferdy on 5/4/2023 in #❓-help
Get tRPC procedure latency?
Hi all, is there a supported mechanism to run common code to all procedures, say if I want to get latency metrics. I want to run the same latency math on all my procedures. I could create a helper function that I just have to remember to wrap all my procedure code in but just wondering if there's some supported tRPC way of doing this?
7 replies
TtRPC
Created by ferdy on 3/6/2023 in #❓-help
trpc + AWS Lambda (through cdk)
Hi all, has anyone successfully integrated tRPC with AWS Lambda? My current stack is API Gateway + Lambda, all created through cdk. I am trying to figure out how to hook up the tRPC router and client to the lambda code. This is my first time using tRPC 😅
55 replies