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

fix: keep site upload batches under 98 mb #1392

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

threepointone
Copy link
Contributor

@threepointone threepointone commented Jul 2, 2022

The maximum request size for a batch upload is 100 MB. We were previously calculating the upload key value to be under 100 MiB. Further, with a few bytes here and there, the size of the request can exceed 100 MiB. So this fix calculate using Mb instead of MiB, but also brings down our own limit to 98 MB so there's some wiggle room for uploads.

Fixes #1367

@changeset-bot
Copy link

changeset-bot bot commented Jul 2, 2022

🦋 Changeset detected

Latest commit: 8ab1846

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2601005899/npm-package-wrangler-1392

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1392/npm-package-wrangler-1392

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2601005899/npm-package-wrangler-1392 dev path/to/script.js

The maximum _request_ size for a batch upload is 100 MB. We were previously calculating the upload key value to be under _100 MiB_. Further, with a few bytes here and there, the size of the request can exceed 100 MiB. So this fix calculate using Mb instead of MiB, but also brings down our own limit to 98 MB so there's some wiggle room for uploads.

Fixes #1367
@threepointone threepointone merged commit ff2e7cb into main Jul 4, 2022
@threepointone threepointone deleted the adjust-sites-upload-limits branch July 4, 2022 07:19
@github-actions github-actions bot mentioned this pull request Jul 4, 2022
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

Successfully merging this pull request may close these issues.

🐛 BUG: 413 Request Entity Too Large
2 participants