Closed sunjiali closed 3 years ago
Where are you getting those API params from?
The AWS_S3_ENDPOINT_URL setting is passed into the boto3 backend. It's hard to see how there could be a bug in django-s3-storage here.
On Wed, 4 Aug 2021 at 06:50, sunjiali @.***> wrote:
I am defined AWS_S3_ENDPOINT_URL in settings
like: AWS_S3_ENDPOINT_URL='https://s3.cn-northwest-1.amazonaws.com.cn' but it still use default endpoint:
api_params {'Bucket': 'zhy-toolsset-video-prod', 'Key': 'Meeting_Recording_-_Sun_Jiali_Instant_Meeting3.mp4'} event_response None handler <function inject_api_version_header_if_needed at 0x7fc0d6d492f0> operation_model OperationModel(name=HeadObject) operation_name 'HeadObject' request_context {'auth_type': None, 'client_config': <botocore.config.Config object at 0x7fc0d45e1048>, 'client_region': 'us-east-1', 'has_streaming_input': False, 'signing': {'bucket': 'zhy-toolsset-video-prod'}} request_dict {'body': b'', 'context': {'auth_type': None, 'client_config': <botocore.config.Config object at 0x7fc0d45e1048>, 'client_region': 'us-east-1', 'has_streaming_input': False, 'signing': {'bucket': 'zhy-toolsset-video-prod'}}, 'headers': {'User-Agent': 'Boto3/1.18.9 Python/3.6.14 ' 'Linux/5.4.116-64.217.amzn2int.x86_64 ' 'Botocore/1.21.9'}, 'method': 'HEAD', 'query_string': {}, 'url': ' https://s3.amazonaws.com/zhy-toolsset-video-prod/Meeting_Recording_-_Sun_Jiali_Instant_Meeting3.mp4', 'url_path': '/zhy-toolsset-video-prod/Meeting_Recording_-_Sun_Jiali_Instant_Meeting3.mp4'} self <botocore.client.S3 object at 0x7fc0d45d0588> service_id 's3' service_name 's3'
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-s3-storage/issues/127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEKCEA6466R6D4DRCWZ6LT3DIJBANCNFSM5BQJZU4A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
This issue is solved.
I am defined AWS_S3_ENDPOINT_URL in settings
like:
AWS_S3_ENDPOINT_URL='https://s3.cn-northwest-1.amazonaws.com.cn'
but it still use default endpoint:`
api_params | {'Bucket': 'zhy-toolsset-video-prod', 'Key': 'Meeting_Recording_-_Sun_Jiali_Instant_Meeting3.mp4'} -- | -- event_response | None handler |