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

Problem Logging In #584

Open
benvchurch opened this issue May 29, 2020 · 3 comments
Open

Problem Logging In #584

benvchurch opened this issue May 29, 2020 · 3 comments

Comments

@benvchurch
Copy link

When I run the sample code:

from fbchat import Client
import logging
client = Client('', '', logging_level=logging.DEBUG)

I get the following error (replicated on two different machines)

File "/usr/local/lib/python2.7/dist-packages/fbchat/_client.py", line 103, in init
self.login(email, password, max_tries, user_agent=user_agent)
File "/usr/local/lib/python2.7/dist-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/usr/local/lib/python2.7/dist-packages/fbchat/_state.py", line 149, in login
return cls.from_session(session=session)
File "/usr/local/lib/python2.7/dist-packages/fbchat/_state.py", line 186, in from_session
fb_dtsg = FB_DTSG_REGEX.search(r.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

p
I am running the most recent version of fbchat in python 2.7.17.

@wetmore
Copy link

wetmore commented May 30, 2020

Have you tried logging in manually to the account you are using? Perhaps the account has been locked?

@benvchurch
Copy link
Author

Yes, there is no such issue.

@qwertyuu
Copy link

qwertyuu commented Jun 1, 2020

Yup the problem is on Facebook's side!

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

3 participants