Increase auth server API timeout
This commit is contained in:
parent
77def611cc
commit
7dfc32f4df
|
@ -16,7 +16,7 @@ def discourse_is_configured():
|
||||||
def auth_api(url, data):
|
def auth_api(url, data):
|
||||||
try:
|
try:
|
||||||
headers = {'Authorization': 'Token ' + secrets.AUTH_API_KEY}
|
headers = {'Authorization': 'Token ' + secrets.AUTH_API_KEY}
|
||||||
r = requests.post(url, data=data, headers=headers, timeout=3)
|
r = requests.post(url, data=data, headers=headers, timeout=20)
|
||||||
return r.status_code
|
return r.status_code
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
logger.error('Auth {} - {} - {}'.format(url, e.__class__.__name__, str(e)))
|
logger.error('Auth {} - {} - {}'.format(url, e.__class__.__name__, str(e)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user