wingkitlee0 commented on PR #47351:
URL: https://github.com/apache/arrow/pull/47351#issuecomment-3198631307
@raulcd Thanks for looking at it! It turns out `get_file_info` has a little
bit different extra error handling.
For other APIs, I was able to use `minio` locally get the expected message:
```
In [6]: fs = S3FileSystem(endpoint_override="localhost:9000", scheme="http",
region="us-east-1", access_key="minioadmin", secret_key="minioadmin")
In [7]: fs.copy_file("test-bucket/a", "test-bucket/b")
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
Cell In[7], line 1
----> 1 fs.copy_file("test-bucket/a", "test-bucket/b")
File
~/.pyenv/versions/3.12.10/envs/py312-arrow-dev/lib/python3.12/site-packages/pyarrow/_fs.pyx:754,
in pyarrow._fs.FileSystem.copy_file()
File
~/.pyenv/versions/3.12.10/envs/py312-arrow-dev/lib/python3.12/site-packages/pyarrow/error.pxi:92,
in pyarrow.lib.check_status()
OSError: When copying key 'a' in bucket 'test-bucket' to key 'b' in bucket
'test-bucket': AWS Error NO_SUCH_BUCKET during CopyObject operation: The
specified bucket does not exist request ID: 185CFDB6B0C338B1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]