hello i have ejabberd + spark. im using ldap shared roster. but when i try to write to someone spark giving me “service-unvailable” error. Using PSI+ i can write successfully. how to fix please?
i can see this in spark log
rg.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from user@domain.net: XMPPError: subscription-required
but no subscription request on the other side
I’m confused: you’re writing that you’re using ejabberd and ‘ldap shared roster’. Typically, LDAP shared rosters is something that you would set up in our own server, Openfire. Does ejabberd have something similar?
In any case, we’ve never tested Spark against ejabberd. Consider using Openfire for better compatibility with Spark.
This error suggests that the ‘other end’ rejects your request, as you do not have a subscription. If this is a subscription request that’s being rejected, then that makes for a silly chicken and egg problem.