👽️(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:
Laurent Bossavit
2025-02-19 20:30:39 +01:00
committed by Laurent Bossavit
parent 70d22eecfa
commit 7025a0787f
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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(