tRPCttRPC
Powered by
Samuel BarnholdtS
tRPC•3y ago•
4 replies
Samuel Barnholdt

Compressing parts of query/mutation input

Hi, I'm using trpc with the proxyclient for typesafety but recently hit an obstacle where some strings are so large (I believe that is the error at the very least) that I can't send the payload without getting Unexpected end of JSON input. Has anyone seen this before and if yes, how did you solve it?

I am solving it now by compressing parts of the query on the way in and out but not a fan since it's sort of a hidden implementation detail. Can I centralize this somewhere? ❓-helpHow to obfuscate data via transformer <- is something like this the approach to go?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

dynamic query and mutation
arashi-devAarashi-dev / ❓-help
4y ago
Query invalidation per mutation-key
simonsimcitySsimonsimcity / ❓-help
11mo ago