👽️(dimail) increase timeout value for API calls
The domain creation endpoint will sometimes take longer than 5s to complete: increase timeouts.
This commit is contained in:
committed by
Laurent Bossavit
parent
70d22eecfa
commit
7025a0787f
@@ -8,6 +8,10 @@ and this project adheres to
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixed
|
||||
|
||||
- 👽️(dimail) increase timeout value for API calls
|
||||
|
||||
## [1.12.0] - 2025-02-18
|
||||
|
||||
### Added
|
||||
|
||||
@@ -101,7 +101,7 @@ class ApiCall:
|
||||
url=f"{self.base}/{self.url}",
|
||||
json=self.params,
|
||||
headers=self.headers,
|
||||
timeout=5,
|
||||
timeout=20,
|
||||
)
|
||||
else:
|
||||
response = requests.request(
|
||||
@@ -109,7 +109,7 @@ class ApiCall:
|
||||
url=f"{self.base}/{self.url}",
|
||||
params=self.params,
|
||||
headers=self.headers,
|
||||
timeout=5,
|
||||
timeout=20,
|
||||
)
|
||||
self.response_data = response.json()
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user