-
Notifications
You must be signed in to change notification settings - Fork 55
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
File gets cached as folder when s3-compatible storage does not receive correct region #329
Labels
bug
Something isn't working
Comments
What's the full stack trace on that error? Also, can you check what happens on cloudpathlib/cloudpathlib/s3/s3client.py Lines 181 to 207 in 6e0dafd
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following code:
This will result in the following error:
However, when we also add the region in the mix (by adding
%env AWS_DEFAULT_REGION=fr-par
to the header), it works.The region should probably always be set for s3-compatible storage, but this error is very misleading. Any ways to make this easier to debug?
To be fair, when running the above code with Cloudflare R2, it spits out an 'unsupported region' error on the first operation. Somehow, Scaleway's S3 storage seems to accept some requests with an incorrect region.
The text was updated successfully, but these errors were encountered: