Skip to content

bug: UnexpectedError in Python Binding When Accessing S3 on aarch64 #5483

@edison-weng

Description

@edison-weng

Bug Description

I encountered an error when using the Python binding within a Docker container. The error occurs while attempting to interact with an S3 bucket. The error message indicates an issue with sending an HTTP request.

Error Message

opendal.UnexpectedError: Unexpected (temporary) at stat, context: { url: https://s3.my-region.amazonaws.com/mybucket/path/to/object.jpg, called: http_util::Client::send, service: s3, path: path/to/object.jpg } => send http request, source: error sending request for url (https://s3.my-region.amazonaws.com/mybucket/path/to/object.jpg)

Reproducible Repository

https://github.com/tacheng9502/opendal-docker-s3-bug

Environment Details

OpenDAL Version: 0.45.13
Python Version: 3.10.16
Docker Base Image: python:3.10-slim, python:3.10, public.ecr.aws/lambda/python:3.10

Additional Context

The issue happens in both the Python slim/full image and AWS Lambda image. However, the same operation works fine outside the Docker container, so this issue seems to be specific to the Docker environment. I’ve verified that the S3 credentials and permissions are correctly set up.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions