Quantcast
Channel: Ignite Realtime : All Content - Openfire Dev
Viewing all articles
Browse latest Browse all 966

Getting a 400 error when connecting with a web-based client

$
0
0

We have openfire set up and have been using it for chats using JSJaC for sometime, but we wanted to start using Candy. I set it up and got it working, but at the same time we were getting our server hosting openfire upgraded to use HTTPS. After the update, Candy and JSJaC both stopped working (as well as Converse, which I was also experimenting with). When it tries to connect, it sends the first request and gets back a response normally, but the second request gets back a 400 error. We tried reverting it to HTTP and it still is not working, and we have tried a number of other things as well, but we're not sure what the root cause of the issue is.

 

The following are the results of signing in as a registered user of the server with a valid JID.

 

First request sent is:

<body rid='stringofnumbers' xmlns='http://jabber.org/protocol/httpbind' to='server.com' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>

The response is:

<body xmlns='http://jabber.org/protocol/httpbind' xmlns:stream='http://etherx.jabber.org/streams' from='server.com' authid='stringofnumbers' sid='stringofnumbers' secure='true' requests='2' inactivity='30' polling='5' wait='60' hold='1' ack='1030890961' maxpause='300' ver='1.6'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mech anism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mech anism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'><optional/></session></stream:featu res></body>

 

Second request sent is:

<body rid='stringofnumbers' xmlns='http://jabber.org/protocol/httpbind' sid='stringofnumbers'><auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/></body>

The response is:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 400 </title>
</head>
<body>
<h2>HTTP ERROR: 400</h2>
<p>Problem accessing /http-bind//. Reason:
<pre> Bad Request</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 966

Trending Articles