Skip to content

[BUG] Instagram is returning null instead of list in clip media info #2329

@BipulLamsal

Description

@BipulLamsal

Describe the bug
Instagram is returning "audio_filter_infos": null inside clips_metadata.original_sound_info.
Instagrapi expects this field to be a list, so Pydantic raises a ValidationError. To fix this type should be audio_filter_infos should be Optional[List[dict]]

To Reproduce
client.user_clips(user_id,amount)

Expected behavior
i was expecting list of media clips from user_id.

Screenshots

Image

Desktop (please complete the following information):

  • OS: 6.16.7-arch1-1
  • Python version : Python 3.13.7
  • instagrapi version : 2.2.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions