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

rust-s3 returns Ok result when garage responds with error #386

Closed
MrFoxPro opened this issue Apr 23, 2024 · 1 comment
Closed

rust-s3 returns Ok result when garage responds with error #386

MrFoxPro opened this issue Apr 23, 2024 · 1 comment
Assignees

Comments

@MrFoxPro
Copy link

rustc 1.79.0-nightly
rust-s3 master branch
garage 1.0.0

let result = self.bucket
  .put_object_with_content_type(&key, &buffer, "image/avif")
  .await;
dbg!(result);
result = Ok(
    ResponseData {
        bytes: b"",
        status_code: 400,
        headers: {
            "content-length": "268",
            "content-type": "application/xml",
            "date": "Tue, 23 Apr 2024 06:33:58 GMT",
        },
    },
)
@MrFoxPro MrFoxPro changed the title rust-s3 returns Ok result when garage respond with error rust-s3 returns Ok result when garage responds with error Apr 23, 2024
@MrFoxPro
Copy link
Author

MrFoxPro commented Apr 23, 2024

OOps, I just realised there is special feature fail-on-err!. Sori.

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

No branches or pull requests

2 participants