Qluxzz / avanza

A Python library for the unofficial Avanza API
https://qluxzz.github.io/avanza/
MIT License
85 stars 40 forks source link

KeyError: 'authenticationSession' #14

Closed ernstan closed 3 years ago

ernstan commented 3 years ago

Hello,

Nice work with this Avanza API! I wonder if anyone can be nice and help me with this issue:

Python 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from avanza import Avanza avanza = Avanza({ ... 'username': 'X', ... 'password': 'X', ... 'totpSecret': 'X' ... }) Traceback (most recent call last): File "", line 4, in File "/avanza/avanza/avanza.py", line 26, in init self._authentication_session = response_body['authenticationSession'] KeyError: 'authenticationSession'

Thanks in advance!