fbchat-dev / fbchat

Facebook Chat (Messenger) for Python
https://fbchat.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.19k stars 413 forks source link

Can't login #642

Closed edikiuspro closed 3 years ago

edikiuspro commented 3 years ago

Traceback (most recent call last): File "/data/data/com.termux/files/home/Voting/Voting.py", line 368, in client=Bot("login","password") File "/data/data/com.termux/files/home/Voting/fbchat/_client.py", line 103, in init self.login(email, password, max_tries, user_agent=user_agent) File "/data/data/com.termux/files/home/Voting/fbchat/_client.py", line 205, in login self._state = State.login( File "/data/data/com.termux/files/home/Voting/fbchat/_state.py", line 139, in login r = session.post("https://m.facebook.com/login.php?login_attempt=1", data=data) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/sessions.py", line 590, in post return self.request('POST', url, data=data, json=json, kwargs) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/sessions.py", line 677, in send history = [resp for resp in gen] File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/sessions.py", line 677, in history = [resp for resp in gen] File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/requests/sessions.py", line 166, in resolve_redirects raise TooManyRedirects('Exceeded {} redirects.'.format(self.max_redirects), response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects.

edikiuspro commented 3 years ago

Okay i dont know how but with time it just fixed