question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KeyError: 'invite' for Self-Hosted Zulip and Self-Hosted Matrix servers

See original GitHub issue

Hello 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:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
AltGrcommented, Nov 23, 2021

pip install matrix-client==0.4.0 seems to solve the issue; you’ll probably want to update zulip/integrations/bridge_with_matrix/requirements.txt

0reactions
bootlegyagacommented, Nov 23, 2021

Hello Thank you @AltGr and @zapashcanon updating it to matrix-client 0.4.0 fixed the issue! I am closing thread now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'invite' · Issue #284 · poljar/weechat-matrix - KeyError - GitHub
It happened after I created a public group in Element and invited some users. The error renders weechat-matrix unusable, as even the chat ......
Read more >
Self-host Zulip
Open-source team chat with enterprise-grade reliability and security. Take charge of your mission-critical communication platform.
Read more >
Zulip Documentation - Read the Docs
Zulip is a powerful, open source group chat application. Written in Python and using the Django framework, Zulip.
Read more >
Err Documentation - Errbot
If you're using HipChat server (self-hosted HipChat) then you should set ... to join/leave channels on their own (they must be invited by...
Read more >
[[@anagora@matrix.org/pull]] - anagora.org
text file pull.md contributed by @anagora@matrix.org ... zulip matrix bridge ... @bmann/2007-05-16-les-orchard-xmpp-for-self-hosted-twitter-esque-nodes
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found