~nicoco/slidge-whatsapp#43: 
Error when running with ejabberd: "Error while trying to subscribe to the MDS node foo@example.com"

I use the latest git master with ejabberd 24.12.

When slidge whatsapp starts, I have the following error in the logs (twice before it starts):

Jan 08 07:05:35 puma slidge-whatsapp[40635]: ERROR:slidge.core.gateway:Error while trying to subscribe to the MDS node of kuon@6x6.ch
Jan 08 07:05:35 puma slidge-whatsapp[40635]: Traceback (most recent call last):
Jan 08 07:05:35 puma slidge-whatsapp[40635]:   File "/srv/slidge/.local/share/pipx/venvs/slidge-whatsapp/lib/python3.13/site-packages/slidge/core/gateway.py", line 491, in __add_component_to_mds_whitelist
Jan 08 07:05:35 puma slidge-whatsapp[40635]:     await self["xep_0356"].send_privileged_iq(iq_affiliation)
Jan 08 07:05:35 puma slidge-whatsapp[40635]:   File "/srv/slidge/.local/share/pipx/venvs/slidge-whatsapp/lib/python3.13/site-packages/slixmpp/plugins/xep_0356/privilege.py", line 205, in send_privileged_iq
Jan 08 07:05:35 puma slidge-whatsapp[40635]:     resp = await iq.send()
Jan 08 07:05:35 puma slidge-whatsapp[40635]:            ^^^^^^^^^^^^^^^
Jan 08 07:05:35 puma slidge-whatsapp[40635]: slixmpp.exceptions.IqTimeout: <iq id="c7146596-06a2-4672-bec0-89d99ff8a571" to="kuon@6x6.ch" from="whatsapp.6x6.ch" type="set"><privileged_iq xmlns="urn:xmpp:privilege:2"><iq xmlns="jabber:client" type="set" to="kuon@6x6.ch" from="kuon@6x6.ch" id="c7146596-06a2-4672-bec0-89d99ff8a571"><pubsub xmlns="http://jabber.org/protocol/pubsub#owner"><affiliations node="urn:xmpp:mds:displayed:0"><affiliation jid="whatsapp.6x6.ch" affiliation="member" /></affiliations></pubsub></iq></privileged_iq></iq>

I have not been using the gateway for long yet, but after those errors happens, the gateway seems to work normally.

My ejabberd config concerning permissions:

acl:
  slidge_acl:
    server:
      - "whatsapp.6x6.ch"

access_rules:
  slidge_rule:
    allow: slidge_acl

modules:
  mod_privilege:
    iq:
      http://jabber.org/protocol/pubsub:
        both: slidge_rule
      http://jabber.org/protocol/pubsub#owner:
        both: slidge_rule
    roster:
      both: slidge_rule
    message:
      outgoing: slidge_rule

Status
RESOLVED CLOSED
Submitter
~kuon
Assigned to
No-one
Submitted
2 months ago
Updated
a month ago
Labels
No labels applied.

~nicoco 2 months ago

Slidge is moving away from sourcehut. For updates on this issue, visit codeberg.

~nicoco REPORTED CLOSED a month ago

nicoco referenced this ticket in commit d125a92.

Register here or Log in to comment, or comment via email.