-
Notifications
You must be signed in to change notification settings - Fork 188
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
Cannot read property 'shortcode_media' of undefined #261
Comments
Hey, could you share your entire code please ? Thanks. |
I also had the same problem this morning suddenly. The app was working perfectly fine up to 12 hours ago. Example Post URL: https://www.instagram.com/p/CHAIm2sHSQZ/ I injected a console log into the
Not sure if this is a permanent change, but at least the original data structure is different now... the weird thing is if i go to https://www.instagram.com/p/CHAIm2sHSQZ/?__a=1
then graphQL key is present, so im not sure why there is a discrepency |
Okay, I did a bit more digging, one of my accounts returns the top result under |
if i try to match the params from the new
but i know for a fact that its not deleted |
Okay, It was my mistake earlier, I thought the new "PK" key and the ID key is the same, but actually it is not, so i used a regex to lop off the numbers after the underscore. After that I did some other mapping in my code to account for the place where data moved around But hopefully this is a temporary change and not a shift to where the getMediaByShortcode is going towards |
same problem here |
same problem here too. |
@ronaldho Hey can you guide me how are you getting posts URLs from your account, I have searching for media IDs but I could not find any way to get media ids of my posts then I am trying to get posts URLs so I can extract media ids from them. |
Hello
I have a problem with "getMediaByShortcode" endpoint, I have the error :
TypeError: Cannot read property 'shortcode_media' of undefined
Thanks a lot for the help
The text was updated successfully, but these errors were encountered: