Hi,
I have apache and punjab setup on my ubuntu host. I am using the
"basic" example on
https://github.com/metajack/strophejs/tree/master/examples
to test.
I have changed the BOSH_SERVICE value to my punjab '
http://localhost:
5280/http-bind'. Then I use my facebook jid (
j...@chat.facebook.com)
and password to connect. However, the connection was failed.
The log says:
Strophe is connecting
SENT: <body rid='
2506141826' xmlns='
http://jabber.org/protocol/
httpbind' to='
chat.facebook.com' xml:lang='en' wait='60' hold='1'
content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
RECV: <body xmlns='
http://jabber.org/protocol/httpbind'
type='terminate' condition='remote connection-failed'/>
And the twisd.log looks like this:
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] 127.0.0.1 - -
[16/Aug/2011:14:37:57 +0000] "OPTIONS /http-bind HTTP/1.1" 200 -
"
http://localhost/fbOttSignal/basic.html" "Mozilla/5.0 (X11; Linux
x86_64) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/
534.26+"
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] HEADERS
1313505477.23:
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] {'origin':
'
http://localhost', 'content-length': '215', 'accept-encoding':
'gzip', 'accept': '*/*', 'user-agent': 'Mozilla/5.0 (X11; Linux
x86_64) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/
534.26+', 'host': 'localhost:5280', 'referer': '
http://localhost/
fbOttSignal/basic.html', 'content-type': 'application/xml'}
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] HTTPB POST :
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] <body
rid='3651938121' xmlns='
http://jabber.org/protocol/httpbind'
to='
chat.facebook.com' xml:lang='en' wait='60' hold='1' content='text/
xml; charset=utf-8' ver='1.6' xmpp:version='1.0'
xmlns:xmpp='urn:xmpp:xbosh'/>
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Session
Created : 7024312e129db428e6f575e17e77a3ae1455ce9e 1313505477.23
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1]
================================== 1313505477.24 connect to
chat.facebook.com:5222 ==================================
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Starting
factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 51281
2011-08-16 16:37:57+0200 [HTTPChannel,3,127.0.0.1] Starting
protocol <twisted.names.dns.DNSDatagramProtocol object at 0x1731a10>
2011-08-16 16:37:57+0200 [twisted.names.dns.DNSDatagramProtocol
(UDP)] <punjab.session.XMPPClientConnector instance at 0x17c30e0> will
retry in 3 seconds
2011-08-16 16:37:57+0200 [twisted.names.dns.DNSDatagramProtocol
(UDP)] Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:37:57+0200 [-] (Port 51281 Closed)
2011-08-16 16:37:57+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1731a10>
2011-08-16 16:38:01+0200 [-] Starting factory <punjab.session.Session
object at 0x1731b90>
2011-08-16 16:38:01+0200 [-] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 35711
2011-08-16 16:38:01+0200 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:01+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
<punjab.session.XMPPClientConnector instance at 0x17c30e0> will retry
in 8 seconds
2011-08-16 16:38:01+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:38:01+0200 [-] (Port 35711 Closed)
2011-08-16 16:38:01+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:09+0200 [-] Starting factory <punjab.session.Session
object at 0x1731b90>
2011-08-16 16:38:09+0200 [-] <class
'twisted.names.dns.DNSDatagramProtocol'> starting on 34062
2011-08-16 16:38:09+0200 [-] Starting protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:10+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Abandoning <punjab.session.XMPPClientConnector instance at 0x17c30e0>
after 3 retries.
2011-08-16 16:38:10+0200 [twisted.names.dns.DNSDatagramProtocol (UDP)]
Stopping factory <punjab.session.Session object at 0x1731b90>
2011-08-16 16:38:10+0200 [-] (Port 34062 Closed)
2011-08-16 16:38:10+0200 [-] Stopping protocol
<twisted.names.dns.DNSDatagramProtocol object at 0x1725c50>
2011-08-16 16:38:25+0200 [-] ==================================
7024312e129db428e6f575e17e77a3ae1455ce9e 1313505505.78 startup timeout
==================================
2011-08-16 16:38:25+0200 [-] HTTPB Error 200
2011-08-16 16:38:25+0200 [-] HTTPB Return Error: 200 -> <body
xmlns='
http://jabber.org/protocol/httpbind' type='terminate'
condition='remote-connection-failed'/>
2011-08-16 16:38:25+0200 [-] 127.0.0.1 - - [16/Aug/2011:14:38:25
+0000] "POST /http-bind HTTP/1.1" 200 105 "
http://localhost/
fbOttSignal/basic.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/
534.26+ (KHTML, like Gecko) Version/5.0 Safari/534.26+"
2011-08-16 16:39:57+0200 [-] SESSION -> Terminate
2011-08-16 16:39:57+0200 [-] expire
(7024312e129db428e6f575e17e77a3ae1455ce9e)
2011-08-16 16:39:57+0200 [-] 0
======================================================================================================================================
Could you kindly help me to analyse the problem? Is there anything
with my setting?
Thanks for your kind help!
/Stella