Please help: Getting "field required" error - Media and/or Collection related #885
Replies: 1 comment
-
Update: i was able to pull from the collection once i added a handle on media_type 8 as follows: elif resource.media_type == 8: I did get errors but i was able to pull all other media types, here are the errors: 500 Server Error: Internal Server Error for url: https://i.instagram.com/api/v1/feed/collection/18246549808001338/?include_igtv_preview=false&max_id=QVFBVm5oRXJLTW9YTHFFVGZuWkJGU0xLMEMtVzNaRXQ0U0NXSVdOSVJMYktjZEFJN25OWHF4Z0FOeHhkQU1UczRjeVVsVkR5aHM5WFJFWk1rR1p5Y3NReA%3D%3D During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I am trying to curl all media files from a specific collection from my instagram account, but i am getting the below error:
Traceback (most recent call last):
File "/Users/khaledhawari/20211205_saveCollections_v1.3.py", line 134, in
save_collections(USER_EMAIL, USER_PASSWORD)
File "/Users/khaledhawari/20211205_saveCollections_v1.3.py", line 107, in save_collections
for media in cl.collection_medias(collection.id, 0):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/instagrapi/mixins/collection.py", line 141, in collection_medias
total_items.append(extract_media_v1(item.get("media", item)))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/instagrapi/extractors.py", line 70, in extract_media_v1
**media,
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for Media
code
field required (type=value_error.missing)
When i try on other collections i am able to run it, from the looks of it i am assuming something is wrong with a media type in that specific collection but i cannot figure it out, any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions