You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IsADirectoryError: [Errno 21] Is a directory: '/tmp/tmpcwvt0_jn/my-scw-bucket-name/folder/file.txt'
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:
Also, can you check what happens on file.is_dir() and file.exists()? Curious if there's something not right in these assumptions for that provider with no region set:
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: