tulir / fbchat-asyncio

Facebook Messenger library for Python/Asyncio
https://pypi.org/project/fbchat-asyncio/
BSD 3-Clause "New" or "Revised" License
39 stars 11 forks source link

Fix "Got empty response when trying to check login" #28

Closed spantaleev closed 3 years ago

spantaleev commented 3 years ago

Fixes https://github.com/tulir/mautrix-facebook/issues/109

Seems like trying to hit / results in a 302 redirect, leading me to some chat (https://www.messenger.com/t/XXXXXXXX/).

Allowing redirects seems to make the bridge work again.

I guess this potentially makes the if len(html) == 0 check (below) potentially useless, since it's now unlikely to receive an empty response.