tRPCttRPC
Powered by
ferdyF
tRPC•3y 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: <]
[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
    });
  }
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

@trpc/client vanilla client not appending formdata data to the request/payload
Answer OverflowAAnswer Overflow / ❓-help
13mo ago
Using both tRPC React client AND tRPC React Query client
anton.johanssonAanton.johansson / ❓-help
3y ago
tRPC Client webpack error
MugetsuMMugetsu / ❓-help
4y ago