From 7025a0787f544fe9d7ec744f70da50d89b76cb45 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Wed, 19 Feb 2025 20:30:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F(dimail)=20increase=20time?= =?UTF-8?q?out=20value=20for=20API=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The domain creation endpoint will sometimes take longer than 5s to complete: increase timeouts. --- CHANGELOG.md | 4 ++++ src/backend/plugins/organizations.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d04fb5..5f23d6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/backend/plugins/organizations.py b/src/backend/plugins/organizations.py index c3d29de..728fa1d 100644 --- a/src/backend/plugins/organizations.py +++ b/src/backend/plugins/organizations.py @@ -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(