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

KeyError: 'user' #467

Closed Trothgar closed 6 years ago

Trothgar commented 6 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:

               like_per_day=700,
               comments_per_day=0,
               tag_list=['cool'],
               max_like_for_one_tag=50,
               follow_per_day=0,
               follow_time=3*60*60,
               unfollow_per_day=0,
               unfollow_break_min=15,
               unfollow_break_max=30,
               log_mod=0,
               proxy='')

Error/Debug Log:


15.03.2018_14:07 Trying to login as lmt...

Traceback (most recent call last):
  File "/home/pi/Desktop/instabot.py-masterlmo/lm_tac.py", line 24, in <module>
    proxy='')
  File "/home/pi/Desktop/instabot.py-masterlmo/src/instabot.py", line 231, in __init__
    self.login()
  File "/home/pi/Desktop/instabot.py-masterlmo/src/instabot.py", line 300, in login
    self.user_id = ui.get_user_id_by_login(self.user_login)
  File "/home/pi/Desktop/instabot.py-masterlmo/src/userinfo.py", line 42, in get_user_id_by_login
    id_user = all_data['user']['id']
KeyError: 'user'

Describe your issue

Hello, I have been running this script from my raspberry pi for a long time now, having to restart it every once in a while if it gets stuck or if my pi freezes up. A few days ago I restarted it after it crashed, and was greeted by this error code. I have rebooted the pi, left it unplugged for a few days and everything else I could think of hardware side, as well as re downloading the scripts. Basically I cannot run the script that has been working flawlessly for months now, wondering if instagram changed something or if I'm messed up somehow. Please advise, thank you.

andreiafurbeis commented 6 years ago

Same error , start yesterday .... I think that the "problem" is instagram , not you

jtrimm007 commented 6 years ago

Same issue here....

sudoguy commented 6 years ago

Wrong repo

mykolasm commented 6 years ago

@sudoguy which repo is the right repo to clone and run? im having the same error:

Traceback (most recent call last): File "example.py", line 52, in unfollow_whitelist=['example_user_1', 'example_user_2']) File "/nfs/2018/m/mmarcink/Desktop/instabot.py-master/src/instabot.py", line 231, in init self.login() File "/nfs/2018/m/mmarcink/Desktop/instabot.py-master/src/instabot.py", line 300, in login self.user_id = ui.get_user_id_by_login(self.user_login) File "/nfs/2018/m/mmarcink/Desktop/instabot.py-master/src/userinfo.py", line 42, in get_user_id_by_login id_user = all_data['user']['id'] KeyError: 'user'