ferdyF
tRPC3y ago
1 reply
ferdy

trpc client request size limits?

I am sending a pretty sizable request and am seeing
[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
    });
  }
Was this page helpful?