when using S3fs with localstack error is thrown about keys
还没有人认领这个 Issue。
评估
调研方向
首先,使用 LocalStack S3 设置和 aiobotocore 的 InvalidAccessKeyId traceback 作为切入点,复现调用 enable_local_endpoints() 后报告的 pandas to_csv 上传问题。未指定项目文件或测试;完成的标准是上传到 LocalStack 成功且不出现凭据错误。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 191
- 派生
- 31
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
localstack/localstack-python-client 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
localstack/localstack-python-client#52 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
localstack/localstack-python-client#43 · 4 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 35/100
localstack/localstack-python-client#38 · 1 条评论 ·
查看 localstack/localstack-python-client 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
canonical/paas-charm#368 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
tech debt
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 1/5 1 小时以内 新手友好度 90/100
StevenBlack/hosts#3256 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
qualcomm/qai-appbuilder#275 ·