We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2640a commit 5461d12Copy full SHA for 5461d12
ocrworker/s3.py
@@ -1,6 +1,7 @@
1
import uuid
2
import logging
3
import boto3
4
+from botocore.client import Config
5
import asyncio
6
from httpx import AsyncClient
7
@@ -33,7 +34,8 @@ def get_client() -> BaseClient:
33
34
aws_secret_access_key=settings.aws_secret_access_key,
35
region_name=settings.aws_region_name,
36
)
- client = session.client("s3")
37
+ # https://stackoverflow.com/questions/26533245/the-authorization-mechanism-you-have-provided-is-not-supported-please-use-aws4 # noqa
38
+ client = session.client("s3", config=Config(signature_version="s3v4"))
39
40
return client
41
0 commit comments