ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.72k stars 1.47k forks source link

bot.upload_photo() returns 400 error: 'Something is wrong. Please check your input and try again.' #1111

Closed leoccyao closed 4 years ago

leoccyao commented 5 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here: 3.7.4

Code:

bot.upload_photo()

Error/Debug Log:

Photo (id) is not uploaded.

Describe your issue

Explanation of your issue goes here. Please make sure the description is worded well enough to be understood with as much context and examples as possible.

Attempting to upload a photo returns "photo not uploaded" error. Inspecting the response data with PyCharm, it shows that we receive a 400 error: 'Something is wrong. Please check your input and try again.'

image

Checked both with and without VPN and on a Gitpod instance (runs on Google Cloud IP addresses). Fails every time, does not seem to be an action block/feedback required type of error.

Lem0nTree commented 5 years ago

Same for the video upload, i think instagram changed their "api"

leoccyao commented 5 years ago

Same issue seems to be happening in #1110 and https://github.com/mgp25/Instagram-API/issues/2971

Hatchet-Harry commented 5 years ago

Probably some answers here: instaapi

hoemon commented 5 years ago

Any updates on this?

leoccyao commented 5 years ago

No, still getting the same errors. Trying with multiple different photos on multiple different accounts (including freshly created accounts), all unsuccessful.

Can we get some help from the creators of the upload_photo() code? Thanks.

elmissouri16 commented 5 years ago

they probably change the endpoint of uploading

Lem0nTree commented 5 years ago

I checked other api libraries in Python on GitHub , but none of them seems to work :s

steffanjensen commented 5 years ago

working again. Weird.

leoccyao commented 5 years ago

Can confirm it works again. However, best to continue monitoring the situation.

tomiui commented 5 years ago

how about upload video? its worked again?

On Wed, Nov 6, 2019, 4:32 AM Leo Yao notifications@github.com wrote:

Can confirm it works again. However, best to continue monitoring the situation.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/instagrambot/instabot/issues/1111?email_source=notifications&email_token=AFBICK4EHHERBMDJTS7WIDLQSHQ5XA5CNFSM4JGORUWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDEMXKQ#issuecomment-550030250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBICK3SK3Z4DJVXMAVSJV3QSHQ5XANCNFSM4JGORUWA .

leoccyao commented 4 years ago

Issue is out of date, closing. See more recent issues on this topic.

mindbreaker commented 4 years ago

Why out of date. Issue still exists.

iamkhalidbashir commented 4 years ago

Images are not getting upload again (also videos), As @elmissouri16 mentioned could be the endpoint issue again?

gabe428 commented 4 years ago

Having issues currently as well: Something is wrong. Please check your input and try again, can provide more info

adw0rd commented 4 years ago

Hello everyone, I figured out the situation and was able to upload the video via /rupload_igvideo/ endpoint, this week I will try to implement a new upload_video for instabot

JoeHO888 commented 4 years ago

@adw0rd Appreciate if you can share how you figure it, we may follow similar approach to solve these issues... Thanks

ostrichegret commented 4 years ago

@adw0rd @JoeHO888

https://github.com/mgp25/Instagram-API/blob/3ec188af003a294803d8b17c22f1f588585384f5/src/Request/Internal.php

protected function _uploadResumablePhoto

Instagram Android now use this path for photo:

$endpoint = sprintf('https://i.instagram.com/rupload_igphoto/%s_%d_%d', $internalMetadata->getUploadId(), 0, Utils::hashCode($photoDetails->getFilename()) );

adw0rd commented 4 years ago

@ostrichegret yes, I use rupload_igphoto too for upload_photo Today I publish it solution as PR

ostrichegret commented 4 years ago

@adw0rd wow, really great job thanks bro

pskl commented 4 years ago

@adw0rd What is your approach for story photo uploads? Using api/v1 seems to have the same problem. Also im getting 500 errors on /rupload_igvideo. Any clues? (/rupload_igphoto works fine).

adw0rd commented 4 years ago

@pskl I didn’t upload video to history, but I can look it out when I find the time rupload_igvideo is working fine, I upload videos to several accounts (three days), everything works

hamdyaea commented 4 years ago

I have the same error :

2019-12-25 18:37:52,121 - INFO - Instabot Started FOUND: w:800 h:800 r:1.0 Request returns 400 error! Request returns 400 error! Request returns 400 error! Request returns 400 error! 2019-12-25 18:39:02,693 - INFO - Photo 'terre.png' is not uploaded. 2019-12-25 18:39:02,694 - INFO - Total requests: 44

iamrohitsuthar commented 4 years ago

I have the same error :

2019-12-25 18:37:52,121 - INFO - Instabot Started FOUND: w:800 h:800 r:1.0 Request returns 400 error! Request returns 400 error! Request returns 400 error! Request returns 400 error! 2019-12-25 18:39:02,693 - INFO - Photo 'terre.png' is not uploaded. 2019-12-25 18:39:02,694 - INFO - Total requests: 44

Make sure you are using the latest version. In mine case v0.88 works like a charm!

hamdyaea commented 4 years ago

2019-12-30 22:56:34,882 - INFO - Instabot Started Request returns 403 error! Request returns 403 error! Request returns 400 error! FOUND: w:800 h:800 r:1.0 2019-12-30 22:56:38,520 - INFO - Photo '/var/www/html/pictures/terre.png' is not uploaded.

With the updated and completely reinstalled version : instabot==0.88.0

I am on Linux Manjaro with Python 3.8.1

adw0rd commented 4 years ago

@hamdyaea try upload jpg file, maybe this is the problem?

hamdyaea commented 4 years ago

Now with a jpg picture :

2019-12-31 15:06:27,310 - INFO - Instabot Started Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 403 error! Request returns 400 error! FOUND: w:640 h:480 r:1.3333333333333333 2019-12-31 15:06:33,992 - INFO - Photo '/var/www/html/pictures/lune.jpg' is not uploaded.

adw0rd commented 4 years ago

I am worried about 403 error... Do you can change your ip address for check?

hamdyaea commented 4 years ago

I have try from two ip and two separate places. I still have the same error.

bruvv commented 4 years ago

https://github.com/instagrambot/instabot/issues/1194 soft banned, cross linking and closing this in favor of that issue.