[Bug 6249] New: can not interact with Server repository with proxy

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Jan 8 12:36:50 UTC 2020


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

            Bug ID: 6249
           Summary: can not interact with Server repository with proxy
           Product: Mercurial
           Version: 5.2rc0
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: danny.schneider at festo.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

commands like hg push / pull / clone,... all fail with the same Trace Output
like this:

hg clone https://xyz/reproname
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.8.1 (default, Dec 21 2019, 20:57:38) [GCC 9.2.0]
** Mercurial Distributed SCM (Version 5.2)
** Erweiterungen geladen: convert, strip, mq, transplant, churn, histedit,
rebase, relink
Traceback (most recent call last):
  File "/usr/bin/hg", line 36, in <module>
    dispatch.run()
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 111, in
run
    status = dispatch(req)
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 250, in
dispatch
    ret = _runcatch(req) or 0
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 424, in
_runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 433, in
_callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/lib/python3.8/site-packages/mercurial/scmutil.py", line 177, in
callcatch
    return func()
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 414, in
_runcatchfunc
    return _dispatch(req)
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 1173, in
_dispatch
    return runcommand(
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 862, in
runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 1185, in
_runcommand
    return cmdfunc()
  File "/usr/lib/python3.8/site-packages/mercurial/dispatch.py", line 1171, in
<lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/lib/python3.8/site-packages/mercurial/util.py", line 1843, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/mercurial/commands.py", line 1912, in
clone
    r = hg.clone(
  File "/usr/lib/python3.8/site-packages/mercurial/hg.py", line 634, in clone
    srcpeer = peer(ui, peeropts, source)
  File "/usr/lib/python3.8/site-packages/mercurial/hg.py", line 233, in peer
    return _peerorrepo(
  File "/usr/lib/python3.8/site-packages/mercurial/hg.py", line 181, in
_peerorrepo
    obj = _peerlookup(path).instance(
  File "/usr/lib/python3.8/site-packages/mercurial/httppeer.py", line 1106, in
instance
    inst = makepeer(ui, path)
  File "/usr/lib/python3.8/site-packages/mercurial/httppeer.py", line 1067, in
makepeer
    respurl, info = performhandshake(ui, url, opener, requestbuilder)
  File "/usr/lib/python3.8/site-packages/mercurial/httppeer.py", line 984, in
performhandshake
    resp = sendrequest(ui, opener, req)
  File "/usr/lib/python3.8/site-packages/mercurial/httppeer.py", line 300, in
sendrequest
    res = opener.open(req)
  File "/usr/lib/python3.8/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/site-packages/mercurial/url.py", line 440, in
https_open
    return self.do_open(self._makeconnection, req)
  File "/usr/lib/python3.8/site-packages/mercurial/keepalive.py", line 244, in
do_open
    self._start_transaction(h, req)
  File "/usr/lib/python3.8/site-packages/mercurial/url.py", line 426, in
_start_transaction
    return keepalive.KeepAliveHandler._start_transaction(self, h, req)
  File "/usr/lib/python3.8/site-packages/mercurial/keepalive.py", line 361, in
_start_transaction
    h.endheaders()
  File "/usr/lib/python3.8/http/client.py", line 1225, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1004, in _send_output
    self.send(msg)
  File "/usr/lib/python3.8/site-packages/mercurial/url.py", line 180, in
_sendfile
    orgsend(self, data)
  File "/usr/lib/python3.8/site-packages/mercurial/keepalive.py", line 636, in
safesend
    self.connect()
  File "/usr/lib/python3.8/site-packages/mercurial/url.py", line 406, in
connect
    _generic_proxytunnel(self)
  File "/usr/lib/python3.8/site-packages/mercurial/url.py", line 236, in
_generic_proxytunnel
    self.send(b'%s: %s\r\n' % header)
TypeError: %b requires a bytes-like object, or an object that implements
__bytes__, not 'str'

the last line seems to indicate a python3 issue...

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


More information about the Mercurial-devel mailing list