when using S3fs with localstack error is thrown about keys
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the reported pandas to_csv upload after calling enable_local_endpoints(), using the LocalStack S3 setup and the aiobotocore InvalidAccessKeyId traceback as the entry point. No project files or tests are named; done means the upload succeeds against LocalStack without the credentials error.
Written by the indexing model from the issue text.
Description
using enable_local_endpoints()
the following error is thrown when uploading to s3 with pandas and S3FS
024-03-06 11:28:48.862 | ERROR | tests.integration.test_pipelines:test_analytics:124 - An error has been caught in function 'test_analytics', process 'MainProcess' (9286), thread 'MainThread' (7997807680):
Traceback (most recent call last):
File "/Users/johnharrison/git/database_flattening/venv/lib/python3.10/site-packages/s3fs/core.py", line 113, in _error_wrapper
return await func(*args, **kwargs)
│ │ └ {'Key': 'main/monitoring/analytics/mongo_query_date=2024-03-05 00:00:00/2024-03-05 00:00:00.csv', 'Bucket': 'ds-spectrum-tabl...
│ └ ()
└ <bound method ClientCreator._create_api_method.<locals>._api_call of <aiobotocore.client.S3 object at 0x14fe17280>>
File "/Users/johnharrison/git/database_flattening/venv/lib/python3.10/site-packages/aiobotocore/client.py", line 408, in _make_api_call
raise error_class(parsed_response, operation_name)
│ │ └ 'PutObject'
│ └ {'Error': {'Code': 'InvalidAccessKeyId', 'Message': 'The AWS Access Key Id you provided does not exist in our records.', 'AWS...
└ <class 'botocore.exceptions.ClientError'>
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the PutObject operation: The AWS Access Key Id you provided does not exist in our records.
The above exception was the direct cause of the following exception:
sample code to test this
isna__sum.to_csv( f's3://tables/main/monitoring/analytics/{start_date}.csv')
error seems to be coming from aiobotocore
- Dominant language
- Python
- Stars
- 191
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from localstack/localstack-python-client
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
localstack/localstack-python-client#52 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
localstack/localstack-python-client#43 · 4 comments ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
localstack/localstack-python-client#38 · 1 comment ·
All issues in localstack/localstack-python-client
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·