From c3446f8a179b5088decf77299b1bd3cbc4ac6bf2 Mon Sep 17 00:00:00 2001 From: Kyle MacMillan Date: Mon, 21 Oct 2024 14:43:23 -0400 Subject: [PATCH] Changed timeout --- .talismanrc | 2 ++ app/va/va_profile/va_profile_client.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.talismanrc b/.talismanrc index a195046ec4..8dd95eb4c2 100644 --- a/.talismanrc +++ b/.talismanrc @@ -47,4 +47,6 @@ fileignoreconfig: checksum: 4e15e63d349635131173ffdd7aebcd547621db08de877ef926d3a41fde72d065 - filename: tests/app/v2/notifications/test_post_notifications.py checksum: 3181930a13e3679bb2f17eaa3f383512eb9caf4ed5d5e14496ca4193c6083965 +- filename: app/va/va_profile/va_profile_client.py + checksum: 5348fe37585b616e64279d32b59b82636f86209ade5074682af2e364c68f0bde version: "1.0" diff --git a/app/va/va_profile/va_profile_client.py b/app/va/va_profile/va_profile_client.py index 1ca159a1a8..3927d51cde 100644 --- a/app/va/va_profile/va_profile_client.py +++ b/app/va/va_profile/va_profile_client.py @@ -109,7 +109,7 @@ def get_profile(self, va_profile_id: RecipientIdentifier) -> Profile: data = {'bios': [{'bioPath': 'contactInformation'}, {'bioPath': 'communicationPermissions'}]} try: - response = requests.post(url, json=data, cert=(self.ssl_cert_path, self.ssl_key_path), timeout=(3.05, 1)) + response = requests.post(url, json=data, cert=(self.ssl_cert_path, self.ssl_key_path), timeout=(5, 2)) response.raise_for_status() except (requests.HTTPError, requests.RequestException, requests.Timeout) as e: self._handle_exceptions(va_profile_id.id_value, e)