502 bad gateway

I am at my wits end.

We are trying to make a chat work, but we are struggling with a 502 bad gateway message.

Strophe connects, and everything seems fine. The chat works, but if i don’t send a message in excactly 20 seconds. The server returns a 502 message, and strophe stops.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
</body></html>

If I try sending another message I get an invalid SID message.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Invalid SID.</title>
</head>
<body><h2>HTTP ERROR: 404</h2><pre>Invalid SID.</pre>
<p>RequestURI=/http-bind/</p><p><i><small><a href="[http://jetty.mortbay.org/](http://jetty.mortbay.org/)">Powered by Jetty://</a></small></i></p><br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               
<br/>                                               

</body>
</html>

The weird thing is that we have a stageing server where the system works. And on the production server, we have another system which also works. They both use the same OpenFire server.

Does any one have the same experience?

-Andreas

The people running the servers had set a timeout, trying to resolve some other problem.

Phew!

-Andreas