👽️(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]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- 👽️(dimail) increase timeout value for API calls
|
||||||
|
|
||||||
## [1.12.0] - 2025-02-18
|
## [1.12.0] - 2025-02-18
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class ApiCall:
|
|||||||
url=f"{self.base}/{self.url}",
|
url=f"{self.base}/{self.url}",
|
||||||
json=self.params,
|
json=self.params,
|
||||||
headers=self.headers,
|
headers=self.headers,
|
||||||
timeout=5,
|
timeout=20,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
response = requests.request(
|
response = requests.request(
|
||||||
@@ -109,7 +109,7 @@ class ApiCall:
|
|||||||
url=f"{self.base}/{self.url}",
|
url=f"{self.base}/{self.url}",
|
||||||
params=self.params,
|
params=self.params,
|
||||||
headers=self.headers,
|
headers=self.headers,
|
||||||
timeout=5,
|
timeout=20,
|
||||||
)
|
)
|
||||||
self.response_data = response.json()
|
self.response_data = response.json()
|
||||||
logger.info(
|
logger.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user