Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 'NoneType' object has no attribute 'get' #2023

Open
havij202025 opened this issue Sep 18, 2024 · 5 comments
Open

[BUG] 'NoneType' object has no attribute 'get' #2023

havij202025 opened this issue Sep 18, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@havij202025
Copy link

havij202025 commented Sep 18, 2024

hi guys. when i get direct messages "self._cl.direct_threads(amount=3)", show me this error "'NoneType' object has no attribute 'get'"
please help me.

@havij202025 havij202025 added the bug Something isn't working label Sep 18, 2024
@GrayHatZone
Copy link

i got same error with latest version of library

@OlivierPaquien
Copy link
Contributor

Hi guys, i got same error, i fixed it by changing a line in instagrapi/extractors.py (function extract_direct_thread) :
if "inviter" in data: became if "inviter" in data and data["inviter"] is not None:

@subzeroid should I do a PR to fix it ?

@markusbeyer
Copy link

@OlivierPaquien please do - I dont know how anybody lists messages using instagrapi anymore with this bug going on @subzeroid (otherwise very awesome api man)

@0xluc
Copy link

0xluc commented Dec 17, 2024

This bug is still unfixed.

OlivierPaquien added a commit to OlivierPaquien/instagrapi that referenced this issue Dec 20, 2024
fix: 'NoneType' object has no attribute 'get' subzeroid#2023
@OlivierPaquien
Copy link
Contributor

PR is here : #2095

subzeroid added a commit that referenced this issue Dec 25, 2024
…_has_no_attribute_get_2023

fix: 'NoneType' object has no attribute 'get' #2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants