Skip to content

cf r2 objects get aborts large downloads after 30 seconds #796

Backlog

Description

@fcsouza

Summary of the issue

cf r2 objects get aborts after about 30 seconds, so a large object can't be downloaded. An 800 MB object fails after 33 s and writes an empty file. A 98 MB object from the same bucket downloads in 8 s.

This looks like the 30-second request deadline from #73. #115 removed it for binary and multipart uploads, but downloads still go through the default timeout. I found no option or environment variable to raise it, and objects get has no range option to download in parts.

Expected behaviour

cf r2 objects get streams the object to stdout until it finishes, as objects put now does for uploads. A timeout should apply to stalled connections, not to a transfer that is still receiving data.

Version of cf used

1.0.0-beta.12. The release notes up to 1.0.0-rc.6 don't mention download timeouts.

System information and package versions

macOS, arm64. Installed globally with Bun 1.4.4. Node v26.13.1.

Reproduction

# A ~100 MB object: works (8 s)
cf r2 objects get <key-of-98MB-object> --bucket-name <bucket> > small.bin

# A ~800 MB object: fails after ~33 s, small.bin stays 0 bytes
cf r2 objects get <key-of-800MB-object> --bucket-name <bucket> > large.bin

Relevant error logs

┌ Error
│ The operation was aborted due to timeout
└

Exit code 1, after 33 s.

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions