fix: #381 allow 10s for slow authentication

This commit is contained in:
Dis 2023-08-30 16:20:54 -04:00 committed by GitHub
parent 68c49ea4b7
commit 1c10c5cf02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -432,8 +432,7 @@ class API(object):
try: try:
LOG.info("Trying to login to %s/%s as %s" % (server_url, path, username)) LOG.info("Trying to login to %s/%s as %s" % (server_url, path, username))
response = self.send_request(server_url, path, method="post", headers=headers, data=json.dumps(auth_data)) response = self.send_request(server_url, path, method="post", timeout=10, headers=headers, data=json.dumps(auth_data))
if response.status_code == 200: if response.status_code == 200:
return response.json() return response.json()
else: else: