def get_token(login, password): try: response = httpx.post('https://anty-api.com/auth/login', json={'username': login, 'password': password}, timeout=None) response.raise_for_status() return response.json()['token'] except httpx.HTTPError as e: print(f"Error: {e}")
getting error 400
Error: Client error '400 Bad Request' for url 'https://anty-api.com/auth/login' For more information check: https://httpstatuses.com/400 None
username and password is correct
getting error 400
Error: Client error '400 Bad Request' for url 'https://anty-api.com/auth/login' For more information check: https://httpstatuses.com/400 None
username and password is correct

