From 062a10f2c53cd982a33d0a9ae24bc9bc25fe7e73 Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Thu, 4 Jul 2024 10:36:21 -0300 Subject: [PATCH] Bump up the timeouts for axis 360 audiobook metadata requests (#1923) --- src/palace/manager/api/axis.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/palace/manager/api/axis.py b/src/palace/manager/api/axis.py index e40498b902..fa35a6915e 100644 --- a/src/palace/manager/api/axis.py +++ b/src/palace/manager/api/axis.py @@ -381,7 +381,10 @@ def get_audiobook_metadata(self, findaway_content_id: str) -> RequestsResponse: base_url = self.base_url url = base_url + self.audiobook_metadata_endpoint params = dict(fndcontentid=findaway_content_id) - response = self.request(url, "POST", params=params) + # We set an explicit timeout because this request can take a long time and + # the default was too short. Ideally B&T would fix this on their end, but + # in the meantime we need to work around it. + response = self.request(url, "POST", params=params, timeout=15) return response def checkin(self, patron: Patron, pin: str, licensepool: LicensePool) -> None: