Skip to content

Commit

Permalink
Increase API login timeout (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderlindenma authored Nov 7, 2024
1 parent df9d2ac commit 20816f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


def get_token(api_url: str, login: str, pwd: str) -> str:
response = requests.post(f"{api_url}/login/access-token", data={"username": login, "password": pwd}, timeout=3)
response = requests.post(f"{api_url}/login/access-token", data={"username": login, "password": pwd}, timeout=10)
if response.status_code != 200:
raise ValueError(response.json()["detail"])
return response.json()["access_token"]
Expand Down

0 comments on commit 20816f6

Please sign in to comment.