Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

400 Bad Request Media not found or unavailable (album image) #30

Closed
daciwei opened this issue Mar 28, 2017 · 2 comments
Closed

400 Bad Request Media not found or unavailable (album image) #30

daciwei opened this issue Mar 28, 2017 · 2 comments

Comments

@daciwei
Copy link
Contributor

daciwei commented Mar 28, 2017

Hi! I try to get info about image

insta.MediaInfo(mediaId) for this image

https://www.instagram.com/p/BR_repxhx4O
id: 1477090425239445006

This is an image inside album.
Other non-album image is fine.

&{POST https://i.instagram.com/api/v1/media/1477090425239445006/info/ HTTP/1.1 1 1 map[Connection:[close] Accept:[*/*] Content-Type:[application/json; charset=UTF-8] Cookie2:[Version=1] Accept-Language:[en-US] User-Agent:[Instagram 10.1.0 Android (18/4.3; 320dpi; 720x1280; Xiaomi; HM 1SW; armani; qcom; en_US)]] 

{ig_sig_key_version=4&signed_body=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.%7B%22_csrftoken%22%3A%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%22%2C%22_uid%22%3A%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%22%2C%22_uuid%22%3A%xxxxxxxxxxxxxxxxxxxxxxxxxxxx%22%2C%22media_id%22%3A%221477090425239445006%22%7D} 0x122f800 293 [] false i.instagram.com map[] map[] <nil> map[]   <nil> <nil> <nil> <nil>}

400 Bad Request
panic: Invalid status code {"status": "fail", "message": "Media not found or unavailable"}

I also try original library mgp25/Instagram-API
It is working...

POST:  media/1477090425239445006/info/
DATA: ig_sig_key_version=4&signed_body=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.{"_uuid":"xxxxxx-xxxxxx-xxxxx-xxxxx-xxxxxxxxxxxxxx","_uid":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","_csrftoken":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","media_id":"1477090425239445006"}
← 200 	 1.45kB

I tried debugging it to understand this problem... but a little hard for me...

@ahmdrz
Copy link
Owner

ahmdrz commented Mar 28, 2017

Nice explaining
thank you , we will fix it as soon as possible.

@ahmdrz
Copy link
Owner

ahmdrz commented May 28, 2017

goinsta can get carousel media ... see last commit.

If you have another question make new issue.

Regards

@ahmdrz ahmdrz closed this as completed May 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants