Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
  #2 (permalink)  
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.