Hi,
Im using the jQuery XMPP client https://github.com/maxpowel/jQuery-XMPP-plugin to connect to openfire chat server via HTTP proxy binding
How ever i'm frequently getting NetworkError messages while long polling the /http-bind URL
I get two types of error messages
- 502 Bad Gateway
- 503 Service Unavailable
Sample of 502 Bad Gateway
POST http://www.my-server.com/chat/
<body rid='6749799594' xmlns='http://jabber.org/protocol/httpbind' sid='3f324ce'><message type="chat" to="robert@my-server.com" xmlns="jabber:client"><body>PPP \</body><active xmlns='http://jabber.org/protocol/chatstates'/></message></body>
RESPONSE from server is
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="/chat/">POST /chat/</a></em>.<p>
Reason: <strong>Error reading from remote server</strong></p></p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at www.my-server.com Port 80</address>
</body></html>
And for 503 Service Unavailable,
POST
<body rid='1687540911' xmlns='http://jabber.org/protocol/httpbind' to='my-server.com' xml:lang='en' wait='600' inactivity='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>
RESPONSE
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at www.my-server.com Port 80</address>
</body></html>
Please advice