Skip to content

Commit

Permalink
unsigned boto3 (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jun 16, 2023
1 parent 928a696 commit 5da8ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mp_api/client/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
from requests.exceptions import RequestException
from tqdm.auto import tqdm
from urllib3.util.retry import Retry
from botocore import UNSIGNED
from botocore.config import Config

from mp_api.client.core.settings import MAPIClientSettings
from mp_api.client.core.utils import api_sanitize, validate_ids
Expand Down Expand Up @@ -131,7 +133,7 @@ def session(self) -> requests.Session:
@property
def s3_resource(self):
if not self._s3_resource:
self._s3_resource = boto3.resource("s3")
self._s3_resource = boto3.resource("s3", config=Config(signature_version=UNSIGNED))
return self._s3_resource

@staticmethod
Expand Down

0 comments on commit 5da8ed2

Please sign in to comment.