Skip to content

Calling serverFn with large data results in error #3974

@uninstallit

Description

@uninstallit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions