Is there someting wrong with --register-to
hiczlf opened this issue · 2 comments
hiczlf commented
if I use --register-to [host]:[port]
, there will be some error:
Traceback (most recent call last):
File "run.py", line 314, in <module>
main()
File "run.py", line 310, in main
r.run()
File "run.py", line 303, in run
return self._run_rpc()
File "run.py", line 261, in _run_rpc
self._register_agent()
File "run.py", line 253, in _register_agent
urllib2.urlopen(register_url)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 427, in _open
'unknown_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1247, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: psdash>
After investigate the code. I use --register-to http://[host]:[port]
, everything is OK.
So I think there may be something wrong with Get statted or code
Sorry for my poor English.
Jahaja commented
Thanks for the report, you're correct, this change should be made clear in the documentation.