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

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

Closed
4 of 7 tasks
leoccyao opened this issue Oct 29, 2019 · 29 comments
Closed
4 of 7 tasks
Assignees

Comments

@leoccyao
Copy link
Contributor

leoccyao commented Oct 29, 2019

Please follow the guide below

  • Issues submitted without this template format will be ignored.
  • You will be asked some questions and requested to provide some information, please read them carefully and answer completely.
  • Put an x into all the boxes [ ] relevant to your issue (like so [x]).
  • Use the Preview tab to see how your issue will actually look like.

Before submitting an issue, make sure you have:

  • Updated to the latest version
  • Read the README and docs
  • Searched the bugtracker for similar issues including closed ones

Purpose of your issue?

  • Bug report (encountered problems/errors)
  • Feature request (request for a new functionality)
  • Question
  • Other

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
Copy link
Contributor

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

@leoccyao
Copy link
Contributor Author

Same issue seems to be happening in #1110 and mgp25/Instagram-API#2971

@Hatchet-Harry
Copy link

Probably some answers here:
instaapi

@hoemon
Copy link

hoemon commented Oct 30, 2019

Any updates on this?

@leoccyao
Copy link
Contributor Author

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
Copy link
Contributor

they probably change the endpoint of uploading

@Lem0nTree
Copy link
Contributor

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

@steffanjensen
Copy link
Contributor

working again. Weird.

@leoccyao
Copy link
Contributor Author

leoccyao commented Nov 5, 2019

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

@tomiui
Copy link

tomiui commented Nov 5, 2019 via email

@leoccyao
Copy link
Contributor Author

leoccyao commented Nov 25, 2019

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

@mindbreaker
Copy link

mindbreaker commented Nov 26, 2019

Why out of date. Issue still exists.

@iamkhalidbashir
Copy link

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

@gabe428
Copy link

gabe428 commented Dec 3, 2019

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

@adw0rd
Copy link
Contributor

adw0rd commented Dec 11, 2019

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
Copy link

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

@ostrichegret
Copy link

ostrichegret commented Dec 13, 2019

@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
Copy link
Contributor

adw0rd commented Dec 13, 2019

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

@ostrichegret
Copy link

@adw0rd wow, really great job thanks bro

ohld added a commit that referenced this issue Dec 14, 2019
Fixed upload photo and video (#1110, #1111, #1135)
@pskl
Copy link

pskl commented Dec 15, 2019

@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
Copy link
Contributor

adw0rd commented Dec 15, 2019

@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
Copy link

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
Copy link

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
Copy link

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
Copy link
Contributor

adw0rd commented Dec 31, 2019

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

@hamdyaea
Copy link

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
Copy link
Contributor

adw0rd commented Dec 31, 2019

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

@hamdyaea
Copy link

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

@bruvv
Copy link
Collaborator

bruvv commented Jan 15, 2020

#1194 soft banned, cross linking and closing this in favor of that issue.

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

No branches or pull requests