KartikTalwar / Duolingo

Unofficial Duolingo API Written in Python
MIT License
822 stars 129 forks source link

get_vocabulary method doesn't work #57

Closed suleymanyaman closed 4 years ago

suleymanyaman commented 5 years ago

get_vocabulary method throws a JSON error like the following:

Traceback (most recent call last): File "C:/Users/asus/.PyCharmCE2017.3/config/scratches/duolingo_auth.py", line 9, in print(lingo.get_vocabulary(language_abbr="es")) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\duolingo.py", line 240, in get_vocabulary overview = overview_request.json() File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 892, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\json__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\asus\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None

suleymanyaman commented 5 years ago

Actually, it has just worked when I passed the password to the lingo object.

SpangleLabs commented 4 years ago

Fixed, closing ticket