I am using minio as follows (example):
minio_client = Minio(
endpoint="my.minio.com:10092",
access_key="minio",
secret_key="minio123!"
)
buckets = minio_client.list_buckets()
for bucket in buckets:
print(bucket.name)
Debugging the code above with VSCode (Python 3.11 / Miniconda - a new environment with only minio installed) I get the following error:
File "C:\Path\to\Miniconda3\envs\minio\Lib\site-packages\urllib3\util\retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='my.minio.com', port=10092): Max retries exceeded with url: / (Caused by SSLError(FileNotFoundError(2, 'No such file or directory')))
I have double checked address and credentials several times, the minio is accessible from other SDKs (I have a different application using the C# SDK) and the WebUI. Additionally if I run the program from the terminal with the same Miniconda environment activated, it works flawlessly. What could be the reason for this issue?
EDIT
Just tested the same code with PyCharm and there it works as well. So the issue definitely has something to do with VSCode. Additionally running the script in VSCode without the debugger works as well.