e4c6 / eksi_unofficial_api

Ekşisözlük.com Unofficial API docs & client
MIT License
35 stars 7 forks source link

"AssertionError" when calling some topics with get_topic() method #10

Closed Fatkhiddinov closed 2 years ago

Fatkhiddinov commented 2 years ago

"AssertionError" when calling some topics with get_topic() method

client.get_topic(256882,1)

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.eksisozluk.com:443 DEBUG:urllib3.connectionpool:https://api.eksisozluk.com:443 "POST /v2/account/anonymoustoken HTTP/1.1" 200 None DEBUG:eksisozluk.EksiSozluk:Token: EksiToken(rank=0, access_token='nRoxqdHeaEmg9Zi0_WaeLbKOYOXs7oP-j7dATbVflMJWrO-nOU8wKbipKVx9aOvBcKGanWE84qIJw7665tgiE_rh3ADdmRfxJz9MXXNhnkJL44bTXJaHhhQtuW6CklvpMeOMecfft7GjJ5-54PNtHUEmxNC1AAks8D-ih0Ge47W6lGMqDgV2DlzbFq400ql6Oc2mez9t6ZKtEMJuLKsmEQ', token_type='bearer', expires_in=86400, user_id=None, refresh_token=None, nick=None, issued_at=datetime.datetime(2021, 11, 28, 13, 1, 13, 209344), expires_at=datetime.datetime(2021, 11, 29, 13, 1, 13, 209344)) DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.eksisozluk.com:443 DEBUG:urllib3.connectionpool:https://api.eksisozluk.com:443 "GET /v2/topic/256882?p=1 HTTP/1.1" 200 None Traceback (most recent call last): File "d:/.../EksiSozluk.py", line 6, in list = client.get_topic(256882, 1) File "C:...\lib\site-packages\eksisozluk\EksiSozluk.py", line 146, in get_topic
return TopicResponse.from_dict(response.json()) File "C:...\lib\site-packages\eksisozluk\Models\Responses\TopicResponse.py", line 17, in from_dict data = from_union([Topic.from_dict, from_none], obj.get("Data")) File "C:...\lib\site-packages\eksisozluk\Models__init__.py", line 40, in from_union assert False AssertionError