[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PSF-Community] Unable to login | fbchat.Client

Hi Shivam,

Please be aware this mailing list is for PSF community-focused 
discussions -- see the list's purpose described at

I might suggest you participate in the discussion on on the `fbchat` 
project repository on GitHub -- the issue at seems to match the error 
you've pasted. Alternatively, you could try directing your question to 
the general Python list (python-list at, CC'd here).


On Tue, Jul 7, 2020 at 07:52, Shivam Dutt Sharma 
<shivamdutt606 at> 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\", 
> line 209, in login
>     user_agent=user_agent,
>   File "C:\Users\my\Anaconda3\lib\site-packages\fbchat\", 
> line 149, in login
>     return cls.from_session(session=session)
>   File "C:\Users\my\Anaconda3\lib\site-packages\fbchat\", 
> line 186, in from_session
>     fb_dtsg =
> AttributeError: 'NoneType' object has no attribute 'group'
> Best,
> Shivam Dutt Sharma
> LinkedIn : shivam-dutt-sharma-020456149
> PGP in Machine Learning | NIT Warangal
> Fundraising Volunteer @ The AIM Foundation
> PCEP @ PythonInstitute