fbchat-dev/fbchat

Can't login in v2.0.0a3 but can in previous versions

Open

#582 ouverte le 26 mai 2020

Voir sur GitHub
 (16 commentaires) (0 réactions) (0 assignés)Python (406 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (1 210 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

Description of the problem

Attempting to login using fbchat v2.0.0a3 throws an error, see Traceback below. I can login as expected using 2.0.0a2 and 1.9.6..

Someone else has had the same problem, and could also solve by using v2.0.0a2, see https://github.com/carpedm20/fbchat/issues/581

Seems related to the solution to https://github.com/carpedm20/fbchat/issues/413, in particular commit https://github.com/carpedm20/fbchat/commit/079d4093c4f0febf004c6cf8f6972f157833a4f7

Code to reproduce

import fbchat

session = fbchat.Session.login("<username snipped>", "<password snipped>")

Traceback

Traceback (most recent call last):
  File "hello.py", line 4, in <module>
    session = fbchat.Session.login("<username snipped>", "<password snipped>")
  File "/Users/matt/programming/python/patrick2/venv/lib/python3.7/site-packages/fbchat/_session.py", line 290, in login
    raise _exception.NotLoggedIn(error)
fbchat.NotLoggedIn: Password Forgot account?

Environment information

  • Python version 3.7.7
  • fbchat version 2.0.0a3 (installed with pip install fbchat==2.0.0a3)

Guide contributeur