Strophe Connection Error
Hi Guys,
This is really confusing. I've got a multi user chat up and running, but after the first couple message stanzas are exchanged I get this error:
Error: 200, OK, An error occured preventing completion of the request.
I haven't found much information about this error out there, but I can say for sure that this is not a browser issue (happens in Chrome and IE) and it is not a server issue (happens in OpenFire and eJabberd). I've also seen an error associated with the session Id, but this doesn't always appear:
Error: 404 invalid SID.
I'm wondering if this is a session problem, like the session is timing out or something?
Here is the specific sequence of stanzas I'm sending once the user has logged in:
Initial presence to log in or create the room
xmpp._connection.send(
$pres({ from: xmpp._nickname + "@" + serverDomain, to: xmpp._roomName + "/" + xmpp._nickname })
.c('x', { xmlns: xmpp.MUC_NAMESPACE }));
if I get a 210 back, I send the following IQ to confirm the room's configuration:
xmpp._connection.send(
$pres({ from: xmpp._nickname + "@" + serverDomain, to: xmpp._roomName + "/" + xmpp._nickname })
.c('x', { xmlns: xmpp.MUC_NAMESPACE }));
Then I allow users to send the following message stanzas:
xmpp._connection.send(
$msg({ to: xmpp._roomName, type: "groupchat" }).c('body').t(body));
The stanzas seem ok, so I'm thinking this is a problem with the connection. Any help here is really really super appreciated.
Thanks,
John
|