Skip to content

cf r2 objects put --file fails with "timeout" on a 264 MB file (50 MB works) #73

Description

@paultnylund

cf version: 1.0.0-beta.5, macOS

What happens

Uploading a 264,177,556-byte file with cf r2 objects put <key> --bucket-name <bucket> --file <path> fails after about 30 seconds:

┌ Error
│ An unexpected error occurred
│
│ timeout
└

Exit code 1, and the object is not in the bucket afterwards (GET returns 404). The same command with a 1 MB and a 50 MB file of random bytes succeeds, and reading them back gives identical content. The command's help gives a 300 MB limit, so 264 MB should be accepted. wrangler r2 object put --remote uploads this same file size fine in our CI.

Repro

head -c 264177556 /dev/urandom > big.bin
cf r2 objects put probe/big.bin --bucket-name <bucket> --file big.bin

Expected

Uploads up to the documented 300 MB succeed, or the request timeout scales with file size or can be configured.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions