Open lormayna opened 4 years ago
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.54. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
fixed in my fork
I am trying to upload a picture, but I got an error. This is my code:
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) } }
And this is the output:
xxx@kwaremont:~/go/src/i$ go run uploader.go 2020/08/11 11:50:37 invalid status code, result: 404 Not Found exit status 1