workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Request entity is too large [code: 7011]

Open HMilbradt opened this issue 11 months ago • 0 comments

Which Cloudflare product(s) does this pertain to?

Pages

What version(s) of the tool(s) are you using?

3.30.1

What version of Node are you using?

18.17.1

What operating system and version are you using?

14.2.1 (23C71)

Describe the Bug

Observed behavior

Running wrangler pages deploy .vercel/output/static --project-name app on a "next on pages" app, I'm seeing this error returned from the API. Everything is as up to date as possible,

I'm not sure if this is an issue with the workers SDK, or with next on pages, so I've decided to open here as there seem to be other issues related to this, though not the same. Please let me know if I should open the issue over on that repo instead.

According to Finder, folder / file sizes produced are as follows:

  • entire folder: ~1GB
  • functions folder: ~866MB
  • static folder: ~156MB
  • _worker.js file: ~182KB

I also have another project that's deployed exactly the same way, which comes in around ~550MB total size, and that deploys successfully. The two apps are quite similar, one just has many more pages.

I'm assuming I'm hitting some internal limit, as inspecting the build artifacts the two projects are very similar. I don't see any gigantic files, the only thing that seems to differ is the fact that one bundle is twice as large.

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

✘ [ERROR] A request to the Cloudflare API (/accounts/myaccountidhere/pages/projects/app/deployments) failed.

Request entity is too large [code: 7011]

If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose

HMilbradt avatar Mar 02 '24 20:03 HMilbradt