discover_backend_port fails with localtunnel-beta
kevinburke opened this issue · 6 comments
I am not sure of the cause but hoped you would be able to see from the stack trace.
Traceback (most recent call last):
File "/usr/local/share/python/localtunnel-beta", line 9, in <module>
load_entry_point('localtunnel==0.5.8', 'console_scripts', 'localtunnel-beta')()
File "/usr/local/lib/python2.7/site-packages/localtunnel/client/client.py", line 73, in run
backend_port = util.discover_backend_port(host[0])
File "/usr/local/lib/python2.7/site-packages/localtunnel/util.py", line 45, in discover_backend_port
headers={"Host": "_backend.{0}".format(hostname)}))
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1180, in do_open
r = h.getresponse(buffering=True)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 371, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''
Steps to reproduce:
pip install localtunnel
on a Snow Leopard with Python 2.7.
Wait, you ran into this during the install process? This seems like something that would happen when you run it.
No, the install process was fine, trying to run it with
localtunnel-beta 9393
or whatever failed
Kevin Burke | 415-723-4116 | www.twilio.com
On Wed, Jan 23, 2013 at 8:17 PM, Jeff Lindsay notifications@github.comwrote:
Wait, you ran into this during the install process?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/78#issuecomment-12636499.
I got the same error on a clean install of OSX 10.8.2 / Python 2.7.2.
Localtunnel (0.5.8) installed with easy_install
.
I am having the same issue, the install was fine, osx 10.7.5, python 2.7.1, installed via easy_install.
ive noticed that this error might be related with issue [https://github.com//issues/66]
My connection also got disconnected a couple of time before getting the error at every run.
Having the same issue, installed using pip, running Ubuntu 12.04 as a VM under Windows 7
the ruby localtunnel used to work until today..
Both versions have reached EOL today.