KeyError: 'invite' for Self-Hosted Zulip and Self-Hosted Matrix servers
See original GitHub issueHello I’ve been trying to setup the integration for a self hosted zulip and a self hosted Matrix server for a while now but stuck on the last step, the starting to mirror matrix bot.
I ran this: python zulip/integrations/bridge_with_matrix/matrix_bridge.py -c matrix_bridge.conf
and got this:
Starting matrix mirroring bot Traceback (most recent call last): File "zulip/integrations/bridge_with_matrix/matrix_bridge.py", line 333, in main matrix_login(matrix_client, matrix_config) File "zulip/integrations/bridge_with_matrix/matrix_bridge.py", line 42, in matrix_login matrix_client.login_with_password(matrix_config["username"], matrix_config["password"]) File "/root/python-zulip-api/zulip-api-py3-venv/lib/python3.7/site-packages/matrix_client/client.py", line 249, in login_with_password self._sync() File "/root/python-zulip-api/zulip-api-py3-venv/lib/python3.7/site-packages/matrix_client/client.py", line 555, in _sync for room_id, invite_room in response['rooms']['invite'].items(): KeyError: 'invite' WARNING:zulip:Sleeping for 2s [max 2] before retrying.
I will hide some of the characters in: matrix_bridge.conf, where [redacted] would be the host of the matrix chat, and [redacted] api key as well. (I made sure the API key is correct).
`[matrix] host = https://matrix.[redacted].chat username = zulip-bot password = [redacted] room_id = #Zulip:matrix.[redacted].chat
[zulip] email = matrix-bot@zulip.[redacted].online api_key = [redacted] site = https://zulip.[redacted].online stream = Matrix topic = matrix `
P.S: I also tried a public room in Matrix as well as a private room.
Thank you in advance 😃
Issue Analytics
- State:
- Created 2 years ago
- Comments:5

Top Related StackOverflow Question
pip install matrix-client==0.4.0seems to solve the issue; you’ll probably want to update zulip/integrations/bridge_with_matrix/requirements.txtHello Thank you @AltGr and @zapashcanon updating it to matrix-client 0.4.0 fixed the issue! I am closing thread now.