[bug] An error occurred when running the app: 1 validation error for Media
Become a 10x Instagrammer and Escape Brainrot with Instagram CLI
Brought to you by:
jetc
Originally created by: jaucabiles
Describe the bug
I am getting this error everytime I try instagram chat start or any chat <commands>:
An error occurred when running the app: 1 validation error for Media
clips_metadata.original_sound_info
Input should be a valid dictionary or instance of ClipsOriginalSoundInfo [type=model_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.11/v/model_type
Screenshots
Desktop (please complete the following information):
Originally posted by: endernoke
This seems to be an issue with instagrapi and how it handles Instagram API responses. It’s likely that a specific chat has missing fields in the response, which can happen since Instagram doesn’t have an official API. We’ll look into adding a wrapper to prevent these errors from breaking chat functionality, but it seems to be a very rare case.
Could you try searching and opening a few specific chats (
instagram chat search "chat_title") and see if it works properly? If it does it is probably a rare issue with loading message from one specific chat in the list.Also, while this is probably not related to your issue, currently support for Windows is no longer maintained. Consider running the app in WSL instead.
Originally posted by: supreme-gg-gg
Seems relevant: [#47]
Having the entire app crash because one chat is missing is quite sad 😢 we'll try to prevent that
Related
Tickets:
#47Originally posted by: qazxwecvr
Not the OP but I was having the same issue and
instagram chat search "chat_title"is also broken, at least in my case. I'm on arch linux and using version 1.3.6 (just installed usingpip)Originally posted by: supreme-gg-gg
I saw this reported a few times on instagrapi https://github.com/subzeroid/instagrapi/issues/2254 related to the new version last month (2.2.1), I will revert instagrapi to the previous version (2.1.3) should fix this, let me know if this still happens. You might need to first either manually downgrade instagrapi or just upgrade instagram CLI
Originally posted by: supreme-gg-gg
This should be fixed by the last release, pls reopen if happens again
Ticket changed by: supreme-gg-gg