Skip to content

Commit

Permalink
Bump up the timeouts for axis 360 audiobook metadata requests (#1923)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen authored Jul 4, 2024
1 parent a6dff93 commit 062a10f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/palace/manager/api/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 062a10f

Please sign in to comment.