• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


05 Feb, 2025

Updated at 10 Feb, 2025

Server action calls are not failing on "413 Entity Too Large"

Link to the code that reproduces this issue

To Reproduce

  1. Serve the server-actions-upload example behind a reverse proxy (i.e. Nginx or similar)
  2. Try uploading a file bigger than allowed by the reserve proxy
  3. Verify that an alert showing “Save success!” is shown

Current vs. Expected behavior

Awaiting a server action that returns a status code different than 200 should throw an error.

Provide environment information

Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:11 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6020 Available memory (MB): 16384 Available CPU cores: 12 Binaries: Node: 22.13.1 npm: 10.9.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 14.2.3 // An outdated version detected (latest is 15.1.6), upgrade is highly recommended! eslint-config-next: 14.2.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.4.5 Next.js Config: output: N/A :warning: An outdated version detected (latest is 15.1.6), upgrade is highly recommended! Please try the latest canary version (npm install next@canary) to confirm the issue still exists before creating a new issue. Read more - https://nextjs.org/docs/messages/opening-an-issue

Which area(s) are affected? (Select all that apply)

Server Actions

Which stage(s) are affected? (Select all that apply)

Other (Deployed), next start (local), next dev (local)

Additional context

Tested with NextJS 14. Tried creating the GitHub issue but it got reject automatically :man_shrugging: Server action calls are not failing on "413 Entity Too Large" · Issue #75663 · vercel/next.js · GitHub

3 posts - 2 participants

Read full topic