Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPB Error 200 #13

Closed
nelisson opened this issue Sep 5, 2011 · 4 comments
Closed

HTTPB Error 200 #13

nelisson opened this issue Sep 5, 2011 · 4 comments

Comments

@nelisson
Copy link

nelisson commented Sep 5, 2011

I'm try to run de basic strophe example, but is error appears:

2011-09-05 16:02:03-0300 [-] Log opened.
2011-09-05 16:02:03-0300 [-] twistd 11.0.0 (C:\Python27\python.exe 2.7.1) starting up.
2011-09-05 16:02:03-0300 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2011-09-05 16:02:03-0300 [-] twisted.web.server.Site starting on 7070
2011-09-05 16:02:03-0300 [-] Starting factory <twisted.web.server.Site instance at 0x0156E0D0>
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] HEADERS 1315249330.82:
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] {'content-length': '204', 'accept-language': 'pt-br', 'accept-encoding': 'gzip, deflate', 'host': 'parati.carros.local:7070', 'accept': '/', 'user-agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)', 'connection': 'Keep-Alive', 'referer': 'http://parati.carros.local/strophe/examples/basic.html', 'cache-control': 'no-cache'}
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] HTTPB POST :
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36]
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] Session Created : 17a781e9c8b2c02afbafacf201cc3f6cbe0218b6 1315249330.82
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] ================================== 1315249330.82 connect to parati:5222 ==================================
2011-09-05 16:02:10-0300 [HTTPChannel,0,10.1.1.36] Starting factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:10-0300 [-] <class 'twisted.names.dns.DNSDatagramProtocol'> starting on 6751
2011-09-05 16:02:10-0300 [-] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:11-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] <punjab.session.XMPPClientConnector instance at 0x01572648> will retry in 2 seconds
2011-09-05 16:02:11-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] Stopping factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:11-0300 [-](Port 6751 Closed)
2011-09-05 16:02:11-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:13-0300 [-] Starting factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:13-0300 [-] <class 'twisted.names.dns.DNSDatagramProtocol'> starting on 44155
2011-09-05 16:02:13-0300 [-] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:13-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] <punjab.session.XMPPClientConnector instance at 0x01572648> will retry in 8 seconds
2011-09-05 16:02:13-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] Stopping factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:13-0300 [-](Port 44155 Closed)
2011-09-05 16:02:13-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:22-0300 [-] Starting factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:22-0300 [-] <class 'twisted.names.dns.DNSDatagramProtocol'> starting on 63821
2011-09-05 16:02:22-0300 [-] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:22-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] Abandoning <punjab.session.XMPPClientConnector instance at 0x01572648> after 3 retries.
2011-09-05 16:02:22-0300 [twisted.names.dns.DNSDatagramProtocol (UDP)] Stopping factory <punjab.session.Session object at 0x01568AB0>
2011-09-05 16:02:22-0300 [-](Port 63821 Closed)
2011-09-05 16:02:22-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x01577D50>
2011-09-05 16:02:39-0300 [-] ================================== 17a781e9c8b2c02afbafacf201cc3f6cbe0218b6 1315249359.2 startup timeout ==================================
2011-09-05 16:02:39-0300 [-] HTTPB Error 200
2011-09-05 16:02:39-0300 [-] HTTPB Return Error: 200 ->
2011-09-05 16:02:39-0300 [-] 10.1.1.36 - - [05/Sep/2011:19:02:38 +0000] "POST /http-bind/ HTTP/1.1" 200 105 "http://parati.carros.local/strophe/examples/basic.html" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

I'm using ejjaberd as jabber server or openfire, the problem appears in both.
Python 2.7.2
Twisted 11.0.0 for Python 2.7
pyOpenSSL 0.12
zope.interface 3.7.0

Thank you for your attention

@twonds
Copy link
Owner

twonds commented Sep 6, 2011

This is a connection problem to the server. It can not lookup the server name using srv. You will need to check DNS for that server or you can disable srv lookups in Punjab.

@nelisson
Copy link
Author

nelisson commented Sep 6, 2011

How to disable srv lookups in Punjab?

@twonds
Copy link
Owner

twonds commented Sep 6, 2011

In your .tac file you add connect_srv = False to your bosh service.

Example:

bosh = HttpbService(1)
bosh.connect_srv = False

@nelisson
Copy link
Author

nelisson commented Sep 6, 2011

Working here!!! Thank you very much

@nelisson nelisson closed this as completed Sep 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants