fbridge
fbridge copied to clipboard
"IndexError: list index out of range" (can't connect to Facebook?)
I feel like I'm so close, but maybe missing some detail somewhere. I'd be grateful if anybody could shed some light on what I'm doing wrong here!
when I run python3 fbridge.py
, here's what I get:
Logging in [email protected]...
Attempt #1 failed, retrying
Traceback (most recent call last):
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 151, in login
return cls.from_session(session=session)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
Attempt #2 failed, retrying
Traceback (most recent call last):
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 151, in login
return cls.from_session(session=session)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
Attempt #3 failed, retrying
Traceback (most recent call last):
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 151, in login
return cls.from_session(session=session)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
Attempt #4 failed, retrying
Traceback (most recent call last):
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 151, in login
return cls.from_session(session=session)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
Traceback (most recent call last):
File "fbridge.py", line 100, in <module>
client = FBListener(username, password)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 103, in __init__
self.login(email, password, max_tries, user_agent=user_agent)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_client.py", line 209, in login
user_agent=user_agent,
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 151, in login
return cls.from_session(session=session)
File "/home/chris/.local/lib/python3.5/site-packages/fbchat/_state.py", line 190, in from_session
revision = int(r.text.split('"client_revision":', 1)[1].split(",", 1)[0])
IndexError: list index out of range
my matterbridge.toml
:
[mattermost]
[mattermost.work]
UseTLS=true
NoTLS=false
Server="https://secret"
Team="helloworld"
Login="secretusername"
Password="p355w0rd"
PrefixMessagesWithNick=true
RemoteNickFormat="[{PROTOCOL}] <{NICK}> "
[api.myapi]
BindAddress="127.0.0.1:4242"
Buffer=1000
RemoteNickFormat="{NICK}"
## This is the default FB gateway. All facebook measseages will be sendt here
[[gateway]]
name="FBgateway"
enable=true
[[gateway.inout]]
account="mattermost.work"
channel="hello"
[[gateway.inout]]
account="api.myapi"
channel="api"