rust-s3 icon indicating copy to clipboard operation
rust-s3 copied to clipboard

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

Open hirrolot opened this issue 2 years ago • 0 comments

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)

hirrolot avatar Apr 27 '23 19:04 hirrolot