Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 27th, 2011, 11:04 AM
Registered User
 
Join Date: Feb 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question 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
 
Old February 28th, 2011, 01:48 AM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

John reposted this question on the list, and I've been helping him here:

http://groups.google.com/group/strop...3016f893c16c64

Just an FYI in case anyone else hits the same problem in the future.




Similar Threads
Thread Thread Starter Forum Replies Last Post
BOSH, Strophe, and Openfire iowadeifan BOOK: Professional XMPP Programming with JavaScript and jQuery 11 March 31st, 2014 03:08 PM
Using sha1 passwords in Strophe.js semper BOOK: Professional XMPP Programming with JavaScript and jQuery 1 June 28th, 2010 02:15 PM
Remote Connection Error: Named Pipes Provider error hbansal ASP.NET 2.0 Basics 5 April 12th, 2009 09:51 AM
Connection Error kingroon Classic ASP Basics 3 January 10th, 2008 08:48 PM
connection error janees ASP.NET 2.0 Professional 1 March 2nd, 2007 02:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.