Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing link options (specifically, maxURLLength) when calling createTRPCClient #98

Open
brunobely opened this issue Oct 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@brunobely
Copy link

Describe the bug
When calling a procedure with particularly large input objects, since there is a max size for URLs and the input is passed via URL params, my call is resulting in the error 431 (Request Header Fields Too Large). tRPC has a maxURLLength property to address that, and I was hoping we could add support for it in trpc-sveltekit.

As a temporary workaround, I'm using code from here to create an httpBatchLink with the appropriate maxURLLength field set: https://github.com/icflorescu/trpc-sveltekit/blob/main/package/src/client.ts

@brunobely brunobely added the bug Something isn't working label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants