-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Describe the bug
When attempting to upload cache files to R2 using the new approach with the command:
wrangler r2 bulk put
the upload process fails with the following error:
429: Too Many Requests
This makes it currently possible upload cache files only using the command with arg --cacheChunkSize=1
Steps to reproduce
pnpm opennextjs-cloudflare populateCache remote
pnpm run deploy
Expected behavior
The command should upload multiple files without rate limiting errors, given that the goal of bulk put is to batch upload objects.
@opennextjs/cloudflare version
1.13.0
Wrangler version
4.49.1
next info output
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041
Available memory (MB): 49152
Available CPU cores: 14
Binaries:
Node: 20.10.0
npm: 10.2.3
Yarn: 1.22.22
pnpm: 10.20.0
Relevant Packages:
next: 15.5.6
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.9.3
Next.js Config:
output: N/AAdditional context
According to Cloudflare’s documentation (section: Upload objects via Wrangler):
Wrangler’s object put command only allows you to upload one object at a time. Use rclone if you wish to upload multiple objects to R2.
Source: https://developers.cloudflare.com/r2/objects/upload-objects/#upload-objects-via-wrangler
This may indicate that wrangler r2 bulk put is not fully supported for large or parallel uploads, or the underlying implementation is still limited to single-object requests.