[bug] The instagram chat is broken 'MessageReactions' object is not...
Become a 10x Instagrammer and Escape Brainrot with Instagram CLI
Brought to you by:
jetc
Originally created by: VerdantEli
Describe the bug
Causes an error when I try to access my chats
To Reproduce
Steps to reproduce the behavior:
instagram chat search -u '#username'Output:
> instagram chat search -u leoindreamland
An error occurred when running the app: 'MessageReactions' object is not subscriptable`
instagram chat startOutput:
> instagram chat start
An error occurred when running the app: 1 validation error for ReplyMessage
visual_media.expiring_media_action_summary.timestamp
Input should be a valid datetime, dates after 9999 are not supported as unix timestamps [type=datetime_parsing, input_value=1751378558000000, input_type=int]
For further information visit https://errors.pydantic.dev/2.11/v/datetime_parsing
Desktop
Originally posted by: supreme-gg-gg
This seems related to [#94], Instagram does not have official API so this is a
instagrapibug, we plan to implement some error handling for these cases soon!Related
Tickets:
#94Ticket changed by: supreme-gg-gg
Ticket changed by: supreme-gg-gg
Originally posted by: supreme-gg-gg
This field on
ReplyMessageseems to be added on the new version (2.2.1), since I've reverted instagrapi to the previous version (2.1.3.) let me know if this happens againOriginally posted by: VerdantEli
The
instagram chat search -u '#username'works now so thanks for that!!Though the
instagram chat startis the only one broken and now shows a new error.Originally posted by: supreme-gg-gg
Instagrapi already fixed this on 2.1.5 (https://github.com/subzeroid/instagrapi/pull/2159) but I didn't see this version since it's not listed on the releases page 💀. For now you can fix this by upgrading instagrapi:
pip install instagrapi==2.1.5and this error should be gone or I will make a new release soon.It might show this but it's fine since the CLI's version is still pinned to 2.1.3:
Sorry for my oversight!
Originally posted by: VerdantEli
Hmmmm I'm not too sure if it didn't install properly (I probably didn't) but doing
pipx install instagrapi==2.1.5doesn't fix the issue. I think ill just wait for your next release since the chatting by username works anyways. Thank you so much for your efforts!!Originally posted by: supreme-gg-gg
Did you upgrade
instagrapiin the same venv / conda environment whereinstagram-cliis installed? Trywhich pipxorwhich instagram-cli. Upgrading should have fixed the NoneType error based on what I saw in the code. I cannot reproduce this error (it depends on the chat content sometimes) so unfortunately there's no way I can validate, let me know if it doesn't work and I'll try to dig up a solutionOriginally posted by: VerdantEli
Hello! sorry i've been unavailable. I tried executing what you said and I am not sure if i'm doing it right but here
doing
which pipxshows:/usr/bin/pipxdoing
which instagram-clishows:which: no instagram-cli in (/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/verdanteli/.local/bin:/home/verdanteli/.local/bin)Though when I try to install instagrapi and instagram-cli again, this is what I get:
I'm not really sure with what this could all of mean. Could it be that instagrapi and instagram-cli are working independently and the upgrade didn't work? i dont know hehehe
Originally posted by: supreme-gg-gg
You're right I just wanted to see if they're installed at two separate venv,
which <command>basically shows where it is installed. For Instagram-cli it says not found because the command is calledinstagramso you need to dowhich instagram.But it seems like it's installed properly, I'll check again and make a new release. Sorry for the delay since I was trying to see if the latest instagrapi is stable or not.
Ticket changed by: supreme-gg-gg