Unable to login | fbchat.Client
MRAB
python at mrabarnett.plus.com
Sat Jul 11 13:21:14 EDT 2020
On 2020-07-11 08:26, Shivam Dutt Sharma wrote:
> Dear All,
>
>
> I am facing an error while trying to log-in to fbchat.Client. This is
> obviously despite me entering absolutely correct ID & P/W. It could be
> because of any latest update in the package, or a user_agent / session
> (cookies) issue too.
>
> Prima-facie, if you think a few adjustments need to be made in the
> client or state file/s, please let me know, else I shall share the
> complete code link for your perusal.
>
>
> Below's the error message. I will be highly grateful, if I can get an
> idea of where am I going wrong?
>
>
> *Logging in xxxxxx.x.xxxxxx...
> Attempt #1 failed, retrying
> Traceback (most recent call last):
> File "C:\Users\my\Anaconda3\lib\site-packages\fbchat\_client.py",
> line 209, in login
> user_agent=user_agent,
> File "C:\Users\my\Anaconda3\lib\site-packages\fbchat\_state.py",
> line 149, in login
> return cls.from_session(session=session)
> File "C:\Users\my\Anaconda3\lib\site-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'*
>
>
[snip]
You should look at the fbchat project itself.
This looks like the same problem:
https://github.com/carpedm20/fbchat/issues/517
More information about the Python-list
mailing list