Skip to content

Commit e33a716

Browse files
Merge pull request #120 from lindsay-stevens/pyodk-101
101: Don't retry POSTs
2 parents 9ba3b59 + 8f0580c commit e33a716

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pyodk/_utils/session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def __init__(self, *args, **kwargs):
5151
total=3,
5252
backoff_factor=2,
5353
status_forcelist=(429, 500, 502, 503, 504),
54-
allowed_methods=("GET", "PUT", "POST", "DELETE"),
5554
)
5655
if (blocksize := kwargs.get("blocksize")) is not None:
5756
self.blocksize = blocksize
@@ -123,7 +122,7 @@ def __init__(
123122
base_url=base_url, api_version=api_version
124123
)
125124
self.blocksize: int = chunk_size
126-
self.mount("https://", Adapter(timeout=30, blocksize=self.blocksize))
125+
self.mount("https://", Adapter(timeout=120, blocksize=self.blocksize))
127126
self.headers.update({"User-Agent": f"pyodk v{__version__}"})
128127
self.auth: Auth = Auth(
129128
session=self, username=username, password=password, cache_path=cache_path

0 commit comments

Comments
 (0)