neo-instabot icon indicating copy to clipboard operation
neo-instabot copied to clipboard

ERROR - "name='csrftoken', domain=None, path=None"

Open CarloSacchi opened this issue 5 years ago • 0 comments

Hi,

I have a brand new server, just compiled, installed services, pip, pyhton etc.. and neo-instabot is running I'm running neo-instabot simultaneously using screen feat. On 2 profile everything is ok On third I've got this error. User / Password are OK I tried to run only this bot (stopping others 2), same error....

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

  • [x] I have searched for other issues with the same problem or similar feature requests. (in the old instabot-py repo too)

Select one:

  • [ ] Bug
  • [ ] Feature Request
  • [x] Technical Help (Please don't create an issue, join the facebook group or telegram channel)
  • [ ] Other

Environment

  • [ ] Are you hosting the bot on a VPS or other Cloud hosting?
  • [ ] Are you running the code on your phone
  • [x] If so, have you tried running the code on your local machine?
Include more details about the environment

Operating System? (include version)

  • [ ] macOS
  • [ ] Windows
  • [ ] Rasbian Linux Raspberry PI (include flavour)
  • [x] Linux (include flavour)
  • [ ] Android (include terminal)
Linux hostname 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Brand new Ubuntu 18.04 server ed.

Python Version Requirement

  • [x] I am using Python 3.6 or above

Exact Python Version?

Python 3.6.8

Pip Version?

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

Instabot Version?

neo-instabot Instabot v0.6.0

How you use the instabot

  • [x] instabot-py -c my-configfile.yml (my-configfile.yml is an example you may have a different file )
  • [ ] instabot-py --login LOGIN --password PASSWORD
  • [ ] instabot-py
  • [ ] example.py (Deprecated, please install newer version)

Description of your issue

as said ERROR - "name='csrftoken', domain=None, path=None"

Welcome to Neo-Instabot

THIS PROJECT HAS BEEN FORKED FROM neo-instabot Project.
DUE TO THE INACTIVITY OF ITS OWNER.

We hope that you enjoy the newer project.
Please follow & star the Neo-Instabot
Github : https://github.com/yurilaaziz/neo-instabot/
Telegram channel : https://t.me/joinchat/NTpLCxe7JqimNaZJYMRkYQ

Neo-Instabot is free and will remain free

for more debug info please add -v or -vv flag (neo-instabot -c config.yml -vv)
2019-08-26 10:57:12,385 - my_insta_profile - Persistence - DEBUG - Init SQL Perisitence sqlite:///my_insta_profile.db
2019-08-26 10:57:12,498 - my_insta_profile - InstaBot - INFO - Instabot v0.6.0 started at 26.08.2019 10:57:
2019-08-26 10:57:12,501 - my_insta_profile - InstaBot - INFO - Trying to login as my_insta_profile...
2019-08-26 10:57:18,023 - my_insta_profile - InstaBot - DEBUG - Login request succeeded
2019-08-26 10:57:18,024 - my_insta_profile - InstaBot - WARNING - Something wrong with login
2019-08-26 10:57:18,025 - my_insta_profile - InstaBot - DEBUG - {"authenticated": false, "user": true, "status": "ok"}
2019-08-26 10:57:18,026 - my_insta_profile - InstaBot - ERROR - "name='csrftoken', domain=None, path=None"
Traceback (most recent call last):
  File "/home/bot/.local/lib/python3.6/site-packages/instabot/bot.py", line 303, in login
    self.csrftoken = login.cookies["csrftoken"]
  File "/home/bot/.local/lib/python3.6/site-packages/requests/cookies.py", line 328, in __getitem__
    return self._find_no_duplicates(name)
  File "/home/bot/.local/lib/python3.6/site-packages/requests/cookies.py", line 399, in _find_no_duplicates
    raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path))
KeyError: "name='csrftoken', domain=None, path=None"
2019-08-26 10:57:18,063 - my_insta_profile - InstaBot - ERROR - Login error! Check your login data!
2019-08-26 10:57:18,064 - my_insta_profile - InstaBot - INFO - Reading configuration (2 settings) from discopiano.yml
2019-08-26 10:57:18,065 - my_insta_profile - InstaBot - INFO - Exit from loop GoodBye


Config

default by dump, just changed username and password

CarloSacchi avatar Aug 26 '19 08:08 CarloSacchi