minio / minio-cpp

MinIO C++ Client SDK for Amazon S3 Compatible Cloud Storage
https://minio-cpp.min.io/
Apache License 2.0
139 stars 56 forks source link

Http status code 0 on ARM64 Ubuntu 20.04 #153

Closed fernwer closed 4 months ago

fernwer commented 4 months ago

I try to run the BucketExists.cc to check the connectivity to the my MinIO cluster. Here is my code:

image

However, while I try to run the code, the result is unchanged as followed: image

At first I thought it may be an url misconfiguration, so I tried changing the url in different formats but it never worked, after that I also tried pinging the server and the server network was connected.

But when I change the code to Python version, everything seems fine. image

So is there anything wrong with my connection configuration in C++ version ?

balamurugana commented 4 months ago

Your MinIO server is running with TLS, but you are accessing non-TLS.

anhnhust commented 4 months ago

Sorry @fernwer , I encountered the same error. How did you solve it before?

fernwer commented 4 months ago

Sorry @fernwer , I encountered the same error. How did you solve it before?

Hi @anhnhust , just set the base_url(your_endpont) as base_url(your_endpoint,false) to be non-TLS, the problem will be solved.