minio / minio-py

MinIO Client SDK for Python
https://docs.min.io/docs/python-client-quickstart-guide.html
Apache License 2.0
851 stars 325 forks source link

MinIO Client not able to connect with a hosted domain. #1420

Closed Shudh25 closed 6 months ago

Shudh25 commented 6 months ago

MinIO Client not able to connect with a hosted domain.

I am using MinIO python client to connect with MinIO, when i am running it in a docker conatainer on my local it is working as expected and i can create buckents in my minio.

from minio import Minio client = Minio( "localhost:9000", access_key="Q3AM3UQ867SPQQA43P2F", secret_key="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" )

but, when i host the minio in my on prem cluster and use an ingress example: "https://minio.temp.com" i'm using the same code and when i create bucket.

client = Minio( "minio.temp.com", access_key="Q3AM3UQ867SPQQA43P2F", secret_key="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" )

client.make_bucket("myBucket")

It is giving an error "INVALID ARGUMENT ERROR"

When i am opening this in my browser "https://minio.temp.com" is available and i can login and create buckets using the MinIO UI.

balamurugana commented 6 months ago

Check what port your MinIO S3 service is running and use it in the endpoint accordingly.