Unable to login | fbchat.Client

Shivam Dutt Sharma shivamdutt606 at gmail.com
Sat Jul 11 03:26:22 EDT 2020


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'*


*Best,*

*Shivam Dutt Sharma*

*LinkedIn : shivam-dutt-sharma-020456149
<https://www.linkedin.com/in/shivam-dutt-sharma-020456149/>*

*PGP in Machine Learning | NIT WarangalFundraising Volunteer @ The AIM
Foundation*

*PCEP @ PythonInstitute*

<https://www.youracclaim.com/badges/360e73ff-a1f8-46c7-8e76-3406306ce36f/public_url>




---------- Forwarded message ---------
From: Shivam Dutt Sharma <shivamdutt606 at gmail.com>
Date: Sun, Jul 5, 2020 at 8:38 AM
Subject: Unable to login | fbchat.Client
To: <psf-community at python.org>


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'*


*Best,*

*Shivam Dutt Sharma*

*LinkedIn : shivam-dutt-sharma-020456149
<https://www.linkedin.com/in/shivam-dutt-sharma-020456149/>*

*PGP in Machine Learning | NIT WarangalFundraising Volunteer @ The AIM
Foundation*

*PCEP @ PythonInstitute*

<https://www.youracclaim.com/badges/360e73ff-a1f8-46c7-8e76-3406306ce36f/public_url>


More information about the Python-list mailing list