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

Request returns 400 error! #1025

Closed LongTalent closed 5 years ago

LongTalent 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: Python 3.4.2

Code:

python3 watch_user_likers_stories.py

Error/Debug Log:

Request returns 400 error!
2019-08-31 17:13:45,581 - INFO - 
            Going to get your likers and watch their stories (and stories of their likers too).
            You can specify username of another user to start (by default we use you as a starting point).

Traceback (most recent call last):
  File "watch_user_likers_stories.py", line 41, in <module>
    user_to_get_likers_of = bot.user_id
  File "/usr/local/lib/python3.4/dist-packages/instabot/bot/bot.py", line 286, in user_id
    return self.api.user_id
  File "/usr/local/lib/python3.4/dist-packages/instabot/api/api.py", line 502, in user_id
    return self.cookie_dict["ds_user_id"]
KeyError: 'ds_user_id'

Describe your issue

I tried out instabot today first time. I wanted to use it to view stories of other users. When I try it I'm asked for account first and then I get the error above. I have the same problem with another example python scripts. I think the problem could be that I'm on vacation in another country now (Instagram knows where I am) and I'm trying to run the statement above from a remote server in my home country. After every run Instagram website asks me if I just tried to login in my home country (Germany):

Bildschirmfoto 2019-08-31 um 14 01 38

I can commit that it was me, but after the next run of python script I see this question again.

Can anyone tell me what I'm doing wrong?

Best regards

vladpoly90 commented 5 years ago

Same here.

TheProOfficial commented 5 years ago

Same.

powderblock commented 5 years ago

Same here. USA

powderblock commented 5 years ago

Fixed!

Solution: Check your username and pass Business accounts will not work for this type of login.

TheProOfficial commented 5 years ago

Fixed!

Solution: Check your username and pass Business accounts will not work for this type of login.

Well, I didn't know business accounts wouldn't work. But now I can't delete the original username and pass because of this error (yes I tried restarting my PC): PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'secret.txt'

LongTalent commented 5 years ago

I deleted my username and entered it again. After that it seems to work. The password was definitely right. Don't ask me what have changed. Try it also. I will close the issue.

ghonchesefidi commented 4 years ago

Fixed!

Solution: Check your username and pass Business accounts will not work for this type of login.

I had changed my profile to personal but still no luck.

mar71ns commented 4 years ago

Same problem here! After trying to log in instagram detected an atypical login attempt and asked me if I tried.

steffanjensen commented 4 years ago

This is a common problem happens to 2 out of 5 accounts, this can be fixed 90% of the time by using challenge required.