Skip to content

Calling serverFn with large data results in error #3974

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

Open
uninstallit opened this issue Apr 10, 2025 · 0 comments
Open

Calling serverFn with large data results in error #3974

uninstallit opened this issue Apr 10, 2025 · 0 comments

Comments

@uninstallit
Copy link

uninstallit commented Apr 10, 2025

Which project does this relate to?

Start

Describe the bug

Depending on the size of the array, I am observing either Access failed - CORS Error or 431 Header Too Large.

I tried wrapping with useServerFn - but I get same results.

This issue may be due to a bad configuration, bad code on my part, or legit bug.

Your Example Website or App

https://github.com/uninstallit/tanstart-large-data

Steps to Reproduce the Bug or Issue

  1. In the useLargeDataHook > generateLoremIpsumData > set count to 100, then refresh and see logs.
  2. In the useLargeDataHook > generateLoremIpsumData > set count to 3000, then refresh, and see logs again.

Expected behavior

As a user, I expect at minimum a more helpful error message.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: Version 135.0.7049.85 (Official Build) (arm64)

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant