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.69k stars 1.47k forks source link

help please!! Error 405 #774

Closed alblz closed 5 years ago

alblz 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:

Code:

# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

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.

USER_NAME: dennis_prs, FOLLOWER: 1276, FOLLOWING: 470 2019-01-21 19:48:58,263 - INFO - Liking user_14789422's feed: 2019-01-21 19:48:58,582 - INFO - Received 18 medias. 2019-01-21 19:48:58,583 - INFO - After filtration 1 medias left. 2019-01-21 19:48:58,583 - INFO - Going to like 1 medias. 0%| | 0/1 [00:00<?, ?it/s]2019-01-21 19:48:58,713 - ERROR - Request returns 405 error!

Media ID error! ^Z [5]+ Stopped python3 like_user_following.py

ohld commented 5 years ago

@maxdevblock @sudoguy Looks very strange to me

aferook commented 5 years ago

I have 405 error for likes, but I do not have ZeroDivisionError.

Server returns 405 after request to https://i.instagram.com/api/v1/media/1961945502573753372/info/

alblz commented 5 years ago

any solution to this problem?

TiasTias commented 5 years ago

I am also getting this now. I used to get 403 and 404 errors until I deleted my cookies.txt and retried it but now I get this:

2019-01-22 21:56:33,157 - INFO - Logged-in successfully as 'thisistias'! 2019-01-22 21:56:33,158 - INFO - Saved cookie! 2019-01-22 21:56:33,158 - INFO - ULTIMATE script. Safe to run 24/7! 0%| | 0/35 [00:00<?, ?it/s]2019-01-22 22:00:04,283 - ERROR - Request returns 405 error!

Media ID error! 2019-01-22 22:00:15,644 - ERROR - Request returns 405 error!

Media ID error! 2019-01-22 22:00:26,769 - ERROR - Request returns 405 error!

.... IT GOES ON.

I was running the ultimate scheduler this function: schedule.every().day.at("22:00").do(run_threaded, like_location_feed)

maxdevblock commented 5 years ago

Uninstall pip installed version and git clone from latest update

alblz commented 5 years ago

thank guys!! Is working!! @maxdevblock

MrMdR commented 5 years ago

@maxdevblock @alblz I'm fairly new to git. Could you explain what is meant?

I've installed python and downloaded the ZIP from the project page. I run instabot trough cmd.exe