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

examples/tokio-backend.rs panics: "The requested range is not satisfiable" #341

Open
Hirrolot opened this issue Apr 27, 2023 · 0 comments
Open
Assignees
Labels

Comments

@Hirrolot
Copy link

Describe the bug

The examples/tokio-backend.rs example yields the following panic:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: HttpFailWithBody(416, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InvalidRange</Code><Message>The requested range is not satisfiable</Message><RangeRequested>bytes=100-1000</RangeRequested><ActualObjectSize>16</ActualObjectSize><RequestId>7TS18WEAWPEGE9JY</RequestId><HostId>6skPYwF63NhPG7xf1Esex0OGl7Nnz0azPxMw+O8vBhW17O0O5Ej2y101ZQ5foTIc6yVrS+YHjNyoEE9/m3LgDA==</HostId></Error>")', s3/../examples/tokio-backend.rs:29:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

To Reproduce

$ git clone https://github.com/durch/rust-s3.git
$ cd rust-s3/
$ export AWS_ACCESS_KEY_ID=<insert your's here>
$ export AWS_SECRET_ACCESS_KEY=<insert your's here>
$ cargo run --example tokio

Expected behavior

I expected to see the test working without panics.

Environment

  • Rust version: rustc 1.67.0-nightly (e9493d63c 2022-11-16)
  • lib version: latest master (commit 7fdb685)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants