-
Notifications
You must be signed in to change notification settings - Fork 233
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
Error handling is still broken with v6.0.3 #1121
Comments
Moving it to relevant project |
Looking into it... |
Reproduced it and working on it. |
|
@codewing |
I think PR #1141 has fixed several issues including this one. |
@ebozduman I did not run my tests yet, but just from looking at the code I still have some concerns regarding error handling, see #1141 (comment) |
I agree the error handling is complex and problematic and its maintenance and testing is cumbersome. I appreciate it if you could test the fix in your environment and let us know an of course open up a new issue if required. |
What about the problem? Is there anything else going on here? |
There is some work that has been done and completed to fix the issue, but testing the fix and tuning it up for all possible scenarios requires considerable amount of time. |
Maybe you should at least mark the package in Nuget/Github that there are problems with the current version. |
I would welcome any development on this issue at all. Just to emphasize, anyone currently starting a new project and using the most recent version of the NuGet package will get 0 error reporting and handling if they make any mistake setting up any Minio integration. For any unfortunate future reader: I could personally fix my issue by adding services.AddMinio(options =>
{
options
.WithEndpoint(config["STORAGE_ENDPOINT"])
.WithCredentials(config["STORAGE_ACCESS_KEY"], config["STORAGE_SECRET_KEY"])
.WithSSL(false)
.Build();
}); |
Confirming, we are running into these issues as well. |
@wardboumans |
Unfortunately v6.0.4 does not resolve this:
We are still stuck with v6.0.0, as the error handling is completely broken with all newer versions! |
@rhegner |
@ebozduman At least mark the Nuget packages that they should not be used. If you don't manage to fix the error in time. The error behavior is a critical behavior from my point of view. |
Expected Behavior
When calling functions like
StatObjectAsync
orGetObjectAsync
, the SDK should throw exceptions if connection to Minio could not be established.Current Behavior
No exceptions are thrown in SDK v6.0.2 and v6.0.3.
This is especially bad in this example where we rely on proper exception handling to detect if an object exists:
The code returns true even though the Minio server could not even be reached.
Steps to Reproduce (for bugs)
This is my testbed:
Regression
Error handling is broken (in different ways) since v6.0.1.
Your Environment
Minio 6.0.3
The text was updated successfully, but these errors were encountered: