-
Ben
Does anybody know if the account registration workflow of Smack (https://download.igniterealtime.org/smack/docs/latest/javadoc/src-html/org/jivesoftware/smackx/iqregister/AccountManager.html#line.271) is the same as defined in XEP-0077?
-
Link Mauve
Ben, do you encounter an issue using it against a server exposing XEP-0077?
-
Ben
No not at all, I think it's working perfectly. Actually I'm trying to do the same registration process in slixmpp, because I'm not really familiar with Java. But since I'm new to developing with XMPP I was wondering if using XEP-0077 plugin in slixmpp will get me there.
-
Link Mauve
It should, I’m much more familiar with slixmpp than with Smack, so if you encounter any issue feel free to ask. :)
-
Link Mauve
We also have a room dedicated to it: xmpp:slixmpp@muc.poez.io?join
-
Ben
I'd be happy for some help 🙂 let me figure out how to join
-
Ben
I can't seem to register 😞
-
Link Mauve
Ben, do you get an error?
-
Link Mauve
Does it work when you run examples/register_account.py?
-
Ben
trying /register command in profanity, it just gives me "11:37:08 - Lost connection. 11:37:30 - Server error: unknown"
-
Link Mauve
Can you enable debug/XMPP logs there?
-
Ben
for muc.poez.io I mean
-
Link Mauve
Hmm… I don’t see any issue connecting to that server, do you have logs either in your client or in your server?
-
Ben
not sure about connecting, registering doesn't work for me
-
Ben
log level is set to Debug but it just says unknown error
-
Ben
xmpp: DBG: RECV: <error xmlns="http://etherx.jabber.org/streams"><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><text xmlns="urn:ietf:params:xml:ns:xmpp-streams">This server does not serve muc.poez.io</text></error>
-
Link Mauve
Hmm, do you know which server yours is trying to connect to? I just manually did the DNS danse and it connected fine. :s
-
Ben
Not sure, the logs jsut say "Connecting via altdomain." . when I open it in the broswer it redirects to https://jabberfr.org/
-
Ben
Link Mauve Maybe I can ask directly here?
-
Ben
Link Mauve I'm confused by the slixmpp docs. the connect() method has this signature in the docs: https://slixmpp.readthedocs.io/en/latest/api/clientxmpp.html#slixmpp.clientxmpp.ClientXMPP.connect but in the code it is connect(self, host: Optional[str] = None, port: Optional[int] = None) -> asyncio.Future
-
Link Mauve
Oh indeed, it seems the documentation is for an older version of the API.
-
Link Mauve
:s
-
Ben
Link Mauve How can I set the TLS parameters to be more lienient when connecting? I see that the server I'm trying to register with causes an SSL error. I think I need to be less strict with certificate checks I guess
-
Link Mauve
Hmm, I’m not sure, it’s probably easier to fix your server setup.
-
Ben
Link Mauve Agreed, unfortunately it's out of my control 😕
-
Ben
Link Mauve Hmmm connection doesn't work against muc.poez.io either. I think I'll take a break from this and try again some other day and debug https://codeberg.org/poezio/slixmpp/src/branch/master/examples/register_account.py I suppose that must work somehow
-
Ben
Link Mauve I wonder if there is a TLS bug on macos or something
-
Ben
Link Mauve Thanks for your help so far 🙂 I hope I'll manage to connect to the slixmpp server at some point
-
Link Mauve
Ben, which TLS library is slixmpp using on your system?
-
Ben
how can I check that?
-
Ben
I'm trying unmodified register_account.py from examples, against muc.poez.io to exclude any problems on my side, but it keeps failing
-
Ben
DEBUG DNS: Querying SRV records for muc.poez.io DEBUG DNS: Exception while querying for muc.poez.io SRV records: (4, 'Domain name not found') DEBUG DNS: Exception while querying for muc.poez.io SRV records: (4, 'Domain name not found') DEBUG DNS: Querying muc.poez.io for AAAA records. DEBUG DNS: Querying muc.poez.io for A records. DEBUG Connection failed: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1010) DEBUG Event triggered: connection_failed DEBUG Event triggered: connected DEBUG SEND: <stream:stream to='muc.poez.io' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'> DEBUG RECV: <stream:stream xml:lang="en" version="1.0" id="404545d7-91f8-4bf0-bb70-6f1292577fd5" from="muc.poez.io"> DEBUG RECV: <stream:error xmlns="http://etherx.jabber.org/streams"><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams" /><text xmlns="urn:ietf:params:xml:ns:xmpp-streams">This server does not serve muc.poez.io</text></stream:error>
-
Link Mauve
Ben, oh, you don’t connect directly to muc.poez.io, that server only serves rooms like this one, not users like you.
-
Link Mauve
You might want to pick a server accepting registrations, for instance from this list: https://providers.xmpp.net/
-
Link Mauve
Then once you have an account, you join rooms on muc.poez.io.
-
Ben
Ah, got it