From fe81c3d2dabf168ff29738024dc82eb690e4abbe Mon Sep 17 00:00:00 2001 From: doublebyte Date: Thu, 27 Aug 2026 10:11:01 +0100 Subject: [PATCH] - increase requests timeout to 50 sec --- pygeoapi_config_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygeoapi_config_dialog.py b/pygeoapi_config_dialog.py index e5162c7..4795325 100644 --- a/pygeoapi_config_dialog.py +++ b/pygeoapi_config_dialog.py @@ -236,7 +236,7 @@ def push_to_server(self, url, data_to_push: dict): # TODO: support authentication through the QT framework try: # Send the PUT request to Admin API - response = requests.put(url, headers=headers, json=data_to_push, timeout=10) + response = requests.put(url, headers=headers, json=data_to_push, timeout=50) response.raise_for_status() QgsMessageLog.logMessage(f"Success! Status Code: {response.status_code}") @@ -266,7 +266,7 @@ def pull_from_server(self, url): # TODO: support authentication through the QT framework try: # Send the GET request to Admin API - response = requests.get(url, headers=headers, timeout=10) + response = requests.get(url, headers=headers, timeout=50) response.raise_for_status() QgsMessageLog.logMessage(f"Success! Status Code: {response.status_code}")