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

Updated API.md intro to reflect current API usage #610

Merged
merged 2 commits into from
Mar 27, 2022

Conversation

davidsenk
Copy link
Contributor

While having a total brainfart moment (I apparently forgot that scrolling exists), I was going insane trying to figure out why the Minio client was not able to communicate over SSL. I was madly following the debugger and not understanding why the client still had http even though it clearly used .WithSSL()

An hour of stepping through the source code (obviously! Dump that nuget package and just link against the source!), and I eventually found the [Obsolete] tag on the constructor used in this example.

I, of course, did a Git blame to find out how long it had been there. 2 years.

About time someone fixes this. It's a copy paste of the example just a little bit further down.

I also removed the .WithSSL() calls on the "obsolete" constructor. That won't work. (this.HTTPClient is never created unless MinioClient() constructor is run, and just silently fails, and doesn't use SSL)

Just to save someone else from pulling their hair out too.

While having a total brainfart moment (I apparently forgot that scrolling exists), I was going insane trying to figure out why the Minio client was not able to communicate over SSL. I was madly following the debugger and not understanding why the client still had http even though it *clearly* used .WithSSL()

An hour of stepping through the source code (obviously! Dump that nuget package and just link against the source!), and I eventually found the [Obsolete] tag on the constructor used in this example. 

I, of course, did a Git blame to find out how long it had been there. 2 years.

About time someone fixes this. It's a copy paste of the example just a little bit further down. 

I also removed the .WithSSL() calls on the "obsolete" constructor. That won't work. (this.HTTPClient is never created unless MinioClient() constructor is run, and just silently fails, and doesn't use SSL)

Just to save someone else from pulling their hair out too.
@harshavardhana harshavardhana merged commit bfda471 into minio:master Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants