cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3043
Views
4
Helpful
2
Replies

Getting Error Could not connect: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams" /></stream:error>

Below is the code for JabberAPI.

            var demoConfig = {

                domain: "domainId", //the domain specified for your CUP server

                httpBindingURL: "url", //the BOSH url for your server

                unsecureAllowed: false //unsecureAllowed should be true if plaintext authentication is allowed over unencrypted or unsecured HTTP channels

            };

When I am trying to login with correct credentials I am getting an error

"Could not connect: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams" /></stream:error>Could not connect: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams" /></stream:error>"

Please help me how can I resolve this issue.

2 Replies 2

tinghche
Level 5
Level 5

Hi Sunil,

Which environment are you referring to? Are you using the devNet shared sandbox? Or your own CUP server?

Typically, the domain would be the domain that your CUP server is on, the BOSH url is http://<CUP_Server>:7335/httpbinding"

Regards,

Howard

Thanks Ting,

Our jabber is Cloud based deployed. I am using CUP server.


Now I am using BOSH url : https://im4.ciscowebex.com/http-bind

Domain : "abc.com"

Now I am not getting the  <stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams" ></xml></stream:error><stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams" ></xml></stream:error>

But I am getting below error :

Could not connect: <error><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /></error>Could not connect: <error><not-authorized xmlns="urn:ietf:params:xml:ns:xmpp-sasl" /></error>