goinsta icon indicating copy to clipboard operation
goinsta copied to clipboard

400 on UploadPhoto

Open p4rkrs opened this issue 6 years ago • 3 comments

func upload(filename string, inst *goinsta.Instagram) {
	f, err := os.Open(filename)

	if err != nil {
		log.Fatal(err)
	}

	_, err = inst.UploadPhoto(f, "test", 0, 0)

	if err != nil {
		log.Fatal(err)
	}
}

Returns invalid status code, result: 400 Bad Request. I tested to set the quality to 87, but returns always the same error. I tried also with a 1080x1800 jpg and a 374x374 jpg file.

I'm doing something wrong?

p4rkrs avatar Oct 30 '19 16:10 p4rkrs

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Oct 30 '19 16:10 issue-label-bot[bot]

I also encountered the same problem, the interface was good before. Other interfaces are normal, is Facebook updated the upload interface?

linwenming avatar Nov 01 '19 05:11 linwenming

The same issue Something broken in upload process since 30 Oct.. https://github.com/mgp25/Instagram-API/issues/2972

DarkDrim avatar Jan 15 '20 14:01 DarkDrim