subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 685 forks source link

Get direct message not work #146

Closed sitthipong169 closed 3 years ago

sitthipong169 commented 3 years ago

cl.direct_threads()

Error:

  File "C:\Users\Instagr\venv\lib\site-packages\instagrapi\mixins\direct.py", line 57, in direct_threads
    threads.append(extract_direct_thread(thread))
  File "C:\Users\Instagr\venv\lib\site-packages\instagrapi\extractors.py", line 217, in extract_direct_thread
    data["inviter"] = extract_user_short(data["inviter"])
  File "C:\Users\Instagr\venv\lib\site-packages\instagrapi\extractors.py", line 149, in extract_user_short
    data["pk"] = data.get("id", data.get("pk", None))
AttributeError: 'NoneType' object has no attribute 'get'
adw0rd commented 3 years ago

Cannot reproduce, please provide tests