fbchat-dev / fbchat-dev/fbchat

Problem Logging In

Open
#584 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.