[Bug 5210] New: "abort: serverhostname argument required" when pulling via HTTPS

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Apr 18 18:22:34 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5210

            Bug ID: 5210
           Summary: "abort: serverhostname argument required" when pulling
                    via HTTPS
           Product: Mercurial
           Version: 3.8-rc
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: urgent
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: kbullock+mercurial at ringworld.org
                CC: mercurial-devel at selenic.com

Probably related to <https://bz.mercurial-scm.org/show_bug.cgi?id=5203>.

$ hg pull --debug --traceback
no terminfo entry for sitm
no terminfo entry for dim
pulling from https://bitbucket.org/sjl/hg-prompt
using https://bitbucket.org/sjl/hg-prompt
sending capabilities command
using /Library/Python/2.7/site-packages/mercurial/dummycert.pem to enable OS X
system CA
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 204, in
_runcatch
    return _dispatch(req)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 887, in
_dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 632, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 204,
in closure
    return func(*(args + a), **kw)
  File "/Library/Python/2.7/site-packages/hgext/pager.py", line 160, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 204,
in closure
    return func(*(args + a), **kw)
  File "/Library/Python/2.7/site-packages/hgext/color.py", line 502, in
colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 1017, in
_runcommand
    return checkargs()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 978, in
checkargs
    return cmdfunc()
  File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 884, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.7/site-packages/mercurial/util.py", line 1005, in
check
    return func(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/mercurial/extensions.py", line 204,
in closure
    return func(*(args + a), **kw)
  File "/Library/Python/2.7/site-packages/mercurial/util.py", line 1005, in
check
    return func(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/hgext/rebase.py", line 1257, in
pullrebase
    ret = orig(ui, repo, *args, **opts)
  File "/Library/Python/2.7/site-packages/mercurial/util.py", line 1005, in
check
    return func(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/mercurial/commands.py", line 5780, in
pull
    other = hg.peer(repo, opts, source)
  File "/Library/Python/2.7/site-packages/mercurial/hg.py", line 171, in peer
    return _peerorrepo(rui, path, create).peer()
  File "/Library/Python/2.7/site-packages/mercurial/hg.py", line 148, in
_peerorrepo
    obj = _peerlookup(path).instance(ui, path, create)
  File "/Library/Python/2.7/site-packages/mercurial/httppeer.py", line 297, in
instance
    inst._fetchcaps()
  File "/Library/Python/2.7/site-packages/mercurial/httppeer.py", line 77, in
_fetchcaps
    self.caps = set(self._call('capabilities').split())
  File "/Library/Python/2.7/site-packages/mercurial/httppeer.py", line 206, in
_call
    fp = self._callstream(cmd, **args)
  File "/Library/Python/2.7/site-packages/mercurial/httppeer.py", line 153, in
_callstream
    resp = self.urlopener.open(req)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 431, in open
    response = self._open(req, data)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 449, in _open
    '_open', req)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
line 409, in _call_chain
    result = func(*args)
  File "/Library/Python/2.7/site-packages/mercurial/httpconnection.py", line
256, in https_open
    return self.do_open(self._makesslconnection, req, True)
  File "/Library/Python/2.7/site-packages/mercurial/httpconnection.py", line
218, in do_open
    h.request(req.get_method(), path, req.data, headers)
  File "/Library/Python/2.7/site-packages/mercurial/httpconnection.py", line
119, in request
    headers=headers)
  File "/Library/Python/2.7/site-packages/mercurial/httpclient/__init__.py",
line 552, in request
    self._connect(pheaders)
  File "/Library/Python/2.7/site-packages/mercurial/httpclient/__init__.py",
line 431, in _connect
    sock = self._ssl_wrap_socket(sock, **self.ssl_opts)
  File "/Library/Python/2.7/site-packages/mercurial/sslutil.py", line 124, in
wrapsocket
    raise error.Abort('serverhostname argument required')
Abort: serverhostname argument required
abort: serverhostname argument required

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list