Wrox Programmer Forums
|
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 April 13th, 2012, 11:07 AM
Registered User
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 404 on connecting to http-bind

xmpp: ejabberd
web server: apache

web.app at serv1, xmpp at serv2

serv1(/xmpp-httpbind) -> proxy(serv1) -> http://ejabberd_server:5280/http-bind

apache config at serv1
Code:
<Location /xmpp-httpbind>
	ProxyPass http://ejabberd_server:5280/http-bind
	ProxyPassReverse http://ejabberd_server:5280/http-bind
</Location>

connecting,and messaging is ok but when i push "disconnect" button

Code:
// disconnect commands
var tt = $pres({to: Groupie.room + '/' + Groupie.nickname, type: 'unavailable'});
Groupie.connection.send( tt );
Groupie.connection.disconnect();
i get
Quote:
POST http://jabberchat/xmpp-httpbind 404 (Not Found)

but if i change
Code:
setTimeout( function(){ Groupie.connection.disconnect() } , 100 );
than its ok too

where is a problem?
 
Old April 16th, 2012, 05:25 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Your setup looks ok, but it seems from teh 404 message that you are hitting the wrong URL.

Notice that it has /xmpp-httpbind instead of /http-bind. Perhaps you've made a configuration error somewhere?
 
Old April 23rd, 2012, 02:49 AM
Registered User
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

there is no configuration error.
URLs is right, see descripion at beginning

there is no error if pause after send() and before disconnect()
 
Old April 26th, 2012, 06:23 PM
Wrox Author
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

Sorry, I misread the configuration.

I'm not sure I can help much without the traffic logs. What requests got sent? What were the replies?

My guess is that for some reason Strophe.js is doing an extra send after the disconnect is done, which will generate a 404. If that's the case it may be a bug, but you should be able to safely ignore it.
 
Old April 28th, 2012, 02:10 AM
Registered User
 
Join Date: Apr 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by metajack View Post
Sorry, I misread the configuration.

I'm not sure I can help much without the traffic logs. What requests got sent? What were the replies?

My guess is that for some reason Strophe.js is doing an extra send after the disconnect is done, which will generate a 404. If that's the case it may be a bug, but you should be able to safely ignore it.
yeah, im thinking that apach is cant processes that strophe is sending.
Im looking in direction of nginx





Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP Status 404 rivcam JSP Basics 7 June 3rd, 2008 09:32 PM
Can you help me to solve the Http 404 error. tytom2003 Pro PHP 2 July 4th, 2006 11:22 AM
http 404 brenden J2EE 1 February 16th, 2006 05:44 AM
HTTP 404 - again javacelt JSP Basics 1 November 1st, 2003 06:16 PM
HTTP status 404 brianjs JSP Basics 2 October 26th, 2003 03:06 PM





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