-
Notifications
You must be signed in to change notification settings - Fork 228
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
Support using PutObjectAsync return a HttpStatusCode and throw Exception when StatusCode not equal 200 #1171
Comments
Yes, we need to change these properties to public
|
It's a bit more than that. Currently the documentation and the samples that are available here or in https://min.io/docs/minio/linux/developers/dotnet/quickstart.html makes one assume that an upload is successful if no exception is triggered. Example of PutObject documentation taken from README:
|
I'm sorry, I didn't get that, Why is it more than publicizing those modifiers? This merge request is ready and makes those modifiers public |
Publicizing those modifiers isn't the same as triggering an Exception if the status code isn't 200 which is the title of this issue. Is it expected that PutObjectAsync doesn't trigger an Exception but still fails to do the upload ? |
PutObjectAsync return a PutObjectResponse, but property HttpStatusCode and ResponseContent is a internal. I checked log, and HttpStatusCode is 400, but cann't access the attribute ResponseStatusCode
The text was updated successfully, but these errors were encountered: