Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login graphql issue #13

Open
5 of 18 tasks
parthshiras opened this issue Aug 26, 2019 · 5 comments
Open
5 of 18 tasks

Login graphql issue #13

parthshiras opened this issue Aug 26, 2019 · 5 comments

Comments

@parthshiras
Copy link

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

  • I have searched for other issues with the same problem or similar feature requests.

Select one:

  • Bug
  • Feature Request
  • 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
  • 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)
  • Linux (include flavour)
  • Android (include terminal)
include the output of 'uname -a'

Python Version Requirement

  • I am using Python 3.6 or above

Exact Python Version?

Include here the response of 'python --version' or 'python3 --version'
3.7.4

Pip Version?

Include here the response of 'pip --version' or 'pip3 --version'
19.2.3

Instabot Version?

Include here the response of 'instabot-py --version'

How you use the instabot

  • 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

    self.user_id = self.get_user_id_by_username(self.user_login)
  File "c:\users\ke536ed\appdata\local\programs\python\python37-32\lib\site-packages\instabot\bot.py", line 214, in get_user_id_by_username
    id_user = json_info["entry_data"]["ProfilePage"][0]["graphql"]["user"]["id"]
KeyError: 'graphql'

Config

Ensure that you specify the configuration file in the command line.
Ensure that the default file instabot.config.yml contains only common settings if you use multiple accounts.
Include the contents of your config here (instabot-py -c config.yml --dump) (REMOVE YOUR USERNAME AND PASSWORD!) (if applicable). < REPLACE THIS TEXT

@artjimlop
Copy link

Is there any update on this issue?

@parthshiras
Copy link
Author

Still no updates. Facing the same issue. Is there no fix on this?

@artjimlop
Copy link

The workaround is to use your user id instead trying to get it in that function

@parthshiras
Copy link
Author

Hey @artjimlop I didn't quite catch the workaround. Where to use the user id?

@parthshiras
Copy link
Author

Can you help with an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants