Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in getting token #14

Open
adampelikan opened this issue May 22, 2024 · 1 comment
Open

problem in getting token #14

adampelikan opened this issue May 22, 2024 · 1 comment

Comments

@adampelikan
Copy link

Hello,

is this project still alive?
I am getting exception....problem occurs when trying to get the authorization token. Please, help...

Exception has occurred: Exception
API error: invalid_request
Backend Failure
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\audiapi\API.py", line 68, in __handle_error
    raise Exception('API error: ' + str(error) + '\n' + error_msg)
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\audiapi\API.py", line 62, in post
    return self.__handle_error(r.json())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\audiapi\Services.py", line 221, in __login_request
    reply = self._api.post(self.url('/token'), data, use_json=False)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\audiapi\Services.py", line 191, in login
    token = self.__login_request(user, password)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\Run.py", line 14, in main
    logon_service.login(data['user'], data['pass'])
  File "C:\Users\adam.pelikan\Downloads\AudiAPI-master\AudiAPI-master\Run.py", line 23, in <module>
    main()
Exception: API error: invalid_request
Backend Failure
@craftycram
Copy link

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants