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

400 on UploadPhoto #281

Open
p4rkrs opened this issue Oct 30, 2019 · 3 comments
Open

400 on UploadPhoto #281

p4rkrs opened this issue Oct 30, 2019 · 3 comments
Labels

Comments

@p4rkrs
Copy link

p4rkrs commented Oct 30, 2019

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?

@issue-label-bot
Copy link

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

@ahmdrz ahmdrz added the bug label Oct 30, 2019
@linwenming
Copy link

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

@DarkDrim
Copy link

The same issue
Something broken in upload process since 30 Oct..
mgp25/Instagram-API#2972

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants