harrypython / itsagramlive

It's A Gram Live is a Python script that create a Instagram Live and provide you a rtmp server and stream key to streaming using sofwares like OBS-Studio.
GNU General Public License v3.0
175 stars 51 forks source link

KeyError: 'logged_in_user' when trying to login #11

Closed pledi closed 4 years ago

pledi commented 4 years ago

Description When trying to run live.start() the program returns a KeyError:

logging in...
Traceback (most recent call last):
  File "live_broadcast.py", line 5, in <module>
    live.start()
  File "/home/User/Documents/itsagramlive/ItsAGramLive/ItsAGramLive.py", line 197, in start
    if self.login():
  File "/home/User/Documents/itsagramlive/ItsAGramLive/ItsAGramLive.py", line 106, in login
    self.username_id = self.LastJson["logged_in_user"]["pk"]
KeyError: 'logged_in_user'

Steps to reproduce the behavior:

  1. Checkout the latest version, at the moment 1.2.2
  2. run python3 live_broadcast.py -u yourInstagramUsername -p yourPassword

Expected behavior Logging in, asking for 2FA Code.

Additional Information Instagram Account has 2FA with Google Authenticator App enabled Already tested disabling 2FA

harrypython commented 4 years ago

It looks like a login error before 2FA.

Do you check your Instagram password? Are you sure there is no space at the end of the string?

pledi commented 4 years ago

my password included a few special characters, changed it and seems to work now, thanks