hzulla / tolino-python

Access to tolino cloud with Python 3
GNU Lesser General Public License v2.1
78 stars 35 forks source link

Thalia login oauth code request failed #28

Closed niklasfyi closed 5 years ago

niklasfyi commented 5 years ago

Hi,

sadly there is a problem when I try to connect to the tolino cloud with Thalia.de credentials.

Traceback (most recent call last):
  File "/home/clue404/dev/git/tolino-python/tolinocloud.py", line 273, in login
    auth_code = params['code'][0]
KeyError: 'code'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tolinoclient.py", line 161, in <module>
    args.func(args)
  File "tolinoclient.py", line 19, in inventory
    c.login(args.user, args.password)
  File "/home/clue404/dev/git/tolino-python/tolinocloud.py", line 275, in login
    raise TolinoException('oauth code request failed.')
tolinocloud.TolinoException: oauth code request failed.

I am using master Branch.

Thanks in advance for any help

niklasfyi commented 5 years ago

Okay I found the error. I added my username and password into tolinoclientrc in quotes like "username". But you have to enter them like username.