mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-11 19:45:06 +00:00
fix(remote): raise GET timeout to 120s so large catalogs load
This commit is contained in:
@@ -89,7 +89,7 @@ class RemoteClient:
|
||||
url = f"{self.server_url}{endpoint}"
|
||||
while True:
|
||||
try:
|
||||
resp = getattr(self.session, method)(url, json=data, timeout=120 if method == "post" else 30)
|
||||
resp = getattr(self.session, method)(url, json=data, timeout=120)
|
||||
except requests.ConnectionError:
|
||||
server_url = safe_display_url(self.server_url)
|
||||
log.error(f"Could not connect to remote server at {server_url}. Is it running? (unshackle serve)")
|
||||
|
||||
Reference in New Issue
Block a user