-
Notifications
You must be signed in to change notification settings - Fork 83
Connecting to prosody #27
Comments
Hi! I am very new to xmpp world and have a similar issue. In my case, "host-unknown" error was caused when using complete jid as username. Try changing: From: $options->setUsername('user@address')->setPassword('password'); But even changing to the correct username I still cannot connect to Prosody. Here are what Prosody log says: May 26 00:41:36 c2s844090 info Client connected Please, can anyone help? Thank you! |
@youmad , thank you for your reply! Ok, but strange thing it never send the message. Here is the entire code:
Please, could you help me with an example code on how to include a very simple debug psr/log, so I can identify what is going on? Must I also install Monolog for this? Thanks! Best regards! |
I was finally able to connect without problems. Don't what I did differently. Could be, that I just used a new version. |
Is there a known problem when connecting to prosody?
I always get a
Uncaught exception 'Fabiang\Xmpp\Exception\Stream\StreamErrorException' with message 'Stream Error: "host-unknown"'
but the host can't be the problem. I can connect to it with pidgin without any problems.
The text was updated successfully, but these errors were encountered: