Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
| 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 December 31st, 2012, 12:56 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7: Dig Problem with Second Request

Enjoying working through the book. Thanks for writing it!

Regarding Dig in Chapter 7: The first disco request seems to work fine, but when I click on the conference.jabber.org reference in the outline, it highlights and I receive a 404 not found error. A screen shot with the HXR requests logged in Chrome are visible at:

http://mazedeck.com/xmpp/Dig-Problem.png

Any suggetions? I downloaded the source directly from the book site and modified dig.js to use bosh.metajack.im:5280/xmpp-httpbind. I am not using the flXHR library. Eventually targeting mobile so want to use CORS.

Thanks.

David
  #2 (permalink)  
Old December 31st, 2012, 01:15 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Github source still exhibits problem

I just tried the dig.js from github instead of the book site and that didn't fix the problem.
  #3 (permalink)  
Old December 31st, 2012, 07:18 PM
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

The 404 is not related to your XMPP traffic. Something is causing the session manager to terminate your session. You'll need to look at the wire traffic to determine what's wrong.
  #4 (permalink)  
Old January 2nd, 2013, 12:10 AM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Too Many Rooms?

Thanks for the quick reply and the pointer. Firebug was helpful in looking at the post response.

When I run dig against other XMPP servers it seems to work fine including returning lengthy lists of rooms. Looking at the response to the request for items at conference.jabber.org it appears to blow up. Maybe the list of rooms is too long or contains something that's a problem for dig. I'm not going to worry about it further since it doesn't apply to my challenge at this point.

Thanks again. -David
  #5 (permalink)  
Old January 2nd, 2013, 04:57 PM
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

I think you're right that it's a stanza size issue. I think many servers cut it off at 10k, and they probably do this by terminating the connection. It seems a bit weird that it would terminate your connection instead of the s2s one, but I can imagine it happening.
 


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
Chp 7 : Dig.js - need to correct code Robert Moses BOOK: Professional XMPP Programming with JavaScript and jQuery 4 March 15th, 2012 01:47 AM
flXHR Security Exception with Dig grantcv1 BOOK: Professional XMPP Programming with JavaScript and jQuery 3 April 15th, 2010 01:09 AM
Dig.exe Command via ASP Page not work Farooq Classic ASP Components 1 June 25th, 2009 06:37 AM
Dig That! Darrell Plank BOOK: Puzzles for Programmers and Pros BOOK ISBN: 978-0-470-12168-9 0 August 31st, 2007 12:18 PM
Chapter 7, Request.QueryString problem pacoruizuk BOOK: Beginning ASP 3.0 1 May 19th, 2006 12:32 PM



All times are GMT -4. The time now is 01:51 PM.


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