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

Login issue AttributeError: 'NoneType' object has no attribute 'group' #565

Closed
Tantol opened this issue May 10, 2020 · 4 comments
Closed

Comments

@Tantol
Copy link

Tantol commented May 10, 2020

Description of the problem

Login issue AttributeError: 'NoneType' object has no attribute 'group'

Code to reproduce

# Example code
from fbchat import Client
from fbchat.models import *
client = Client('...', '...')
client.logout()
print("end")

Traceback

Traceback (most recent call last):
  File "/home/xxx/.local/lib/python3.6/site-packages/fbchat/_client.py", line 209, in login
    user_agent=user_agent,
  File "/home/xxx/.local/lib/python3.6/site-packages/fbchat/_state.py", line 149, in login
    return cls.from_session(session=session)
  File "/home/xxx/.local/lib/python3.6/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'

Environment information

  • Python 3
  • fbchat newest
@Tantol Tantol mentioned this issue May 11, 2020
@403error403
Copy link

how can I get the newest version of fbchat?

@Tantol
Copy link
Author

Tantol commented May 18, 2020

how can I get the newest version of fbchat?

pip install git+https://github.com/carpedm20/fbchat.git

@403error403
Copy link

403error403 commented Oct 19, 2020 via email

@Tantol
Copy link
Author

Tantol commented Oct 19, 2020

Hello Sir. Can you help me to make a fb chat bot? I am facing some minor problems but I can't solve these. I need a brief resource also. Please help me. Thanks in advance.😊

On Mon, May 18, 2020, 11:00 PM Piotr Żarczyński @.***> wrote: Closed #565 <#565>. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#565 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APSQSXXUCRBROLKOT54OIFLRSFSRBANCNFSM4M5JF47Q .

I gave up on this project because it's simply not working. Instead of this project I used official documentation (from fb) with a pymessenger.bot non official messanger api wrapper. You can consume API on your own, or use pymessenger, or other lib BUT in this moment I'm not recomending you using this repo. The author himself is telling us in README that he have no free time to update his solution and it's out-date (looking on official documentation of messenger).

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

2 participants