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

[BUG] Traceback (most recent call last) #1316

Closed nizarganteng closed 4 years ago

nizarganteng commented 4 years ago

Example file

comment_hashtags

Describe the bug i type "pip install -U instabot" after that i type "python comment_hashtags.py comments.txt ceramah videoislam fotoislam" this problem arose

Log

C:\Users\nizar\examples\comment>python comment_hashtags.py comments.txt ceramah videoislam fotoislam
2020-02-23 05:58:15,093 - INFO - Instabot version: 0.110.0 Started
Which account do you want to use? (Type number)
1: myusername
0: add another account.
-1: delete all accounts.
1
2020-02-23 05:58:17,151 - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
Traceback (most recent call last):
  File "comment_hashtags.py", line 30, in <module>
    bot.login()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py", line 443, in login
    if self.api.login(**args) is False:
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 266, in login
    self.pre_login_flow()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 182, in pre_login_flow
    return pre_login_flow(self)
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api_login.py", line 107, in pre_login_flow
    self.sync_device_features()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 155, in sync_device_features
    return sync_device_features(self, login)
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api_login.py", line 23, in sync_device_features
    data["_uid"] = self.user_id
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 616, in user_id
    return self.cookie_dict["ds_user_id"]
KeyError: 'ds_user_id'

To Reproduce

(EXAMPLE:) Steps to reproduce the behavior: cd examples\comment python comment_hashtags.py comments.txt ceramah videoislam fotoislam

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

Version

Python version (Python 3.8.1): OS: Win 10

bruvv commented 4 years ago

Please post the log file that is saved in the config/log/ folder.

nizarganteng commented 4 years ago

2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - INFO - Instabot version: 0.110.0 Started 2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - DEBUG - Bot imported from C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py 2020-02-23 05:58:17,151 - instabot version: 0.110.0 (api_login) - INFO - Not yet logged in starting: PRE-LOGIN FLOW! 2020-02-23 05:58:19,559 - instabot version: 0.110.0 (api) - DEBUG - POST to endpoint: accounts/contact_point_prefill/ returned response: <Response [200]>

bruvv commented 4 years ago

Merging with this issue: https://github.com/instagrambot/instabot/issues/1317