-
Notifications
You must be signed in to change notification settings - Fork 14
Document usage with MinIO #159
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
Comments
Hmm. I have never used Minio but this seems like perhaps a bug in the underlying Rust |
Thanks for the reply! I will go and ask in the channel. Appreciate your help! |
Hi @kylebarron , I tired to reproduce this in Rust object_store and add the timeout by p.s. Sorry for the messy code as I have no experience in Rust before |
Wow awesome! Thanks for diving into Rust to reproduce this! It's certainly possible there's a bug in obstore. Perhaps it's in how we're passing in the client options? Can you try using obstore/pyo3-object_store/src/client.rs Lines 17 to 19 in b40d59b
obstore/pyo3-object_store/src/client.rs Lines 29 to 34 in b40d59b
|
I guess aws_allow_http never gets passed into the client options because client_options are already set explicitly. Below might work: store = S3Store.from_env(
"my-s3-bucket",
config={
"aws_endpoint": "http://localhost:30002",
"access_key_id": "minio",
"secret_access_key": "miniostorage",
"aws_virtual_hosted_style_request": "false",
},
client_options = {"timeout": "200s", "allow_http": "true"},
) |
Setting |
Ah thanks for finding that @ion-elgreco! With the improved typing in the latest release (0.3), your original code doesn't type check: ![]() However this does: ![]() |
It might be helpful to add this to the docs as an example of how to use with minio |
Sure! I can help with that when I have time |
I’ve been trying to read a file from a local MinIO instance using obstore, but I encountered a
GenericError
when specifying a timeout for myS3Store
. If I remove the timeout configuration, the file is read successfully. Additionally, this issue does not occur when reading from AWS S3 (with or without the timeout setting).Below is the code snippet I used:
When the timeout is set, I get this error:
Does anyone know why this issue happens? Any insights or guidance would be greatly appreciated!
Thank you!
The text was updated successfully, but these errors were encountered: