[Bug 6839] New: hg debugssl throws unknown exception - TypeError: coercing to Unicode: need string or buffer, NoneType found

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Aug 9 10:51:49 UTC 2023


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

            Bug ID: 6839
           Summary: hg debugssl throws unknown exception - TypeError:
                    coercing to Unicode: need string or buffer, NoneType
                    found
           Product: Mercurial
           Version: 2.7.1
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: hglib
          Assignee: bugzilla at mercurial-scm.org
          Reporter: Robert.stroud at nccgroup.com
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

Hello,

Mercurial wasn't recognising the SSL certificate for my repository, which was
issued by my organisation's root CA, so I installed the root CA on my Windows
machine.

When I tried to do an "hg pull" from the server, Mercurial issued the following
warning:

% hg pull
pulling from https://hg.xxx.com
(the full certificate chain may not be available locally; see "hg help
debugssl")
URLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
(_ssl.c:727)

I ran "hg debugs" and got the following exception:

[...]
  File "mercurial\debugcommands.pyo", line 3788, in debugssl
  File "ssl.pyo", line 864, in connect
  File "ssl.pyo", line 851, in _real_connect
  File "socket.pyo", line 228, in meth
TypeError: coercing to Unicode: need string or buffer, NoneType found
cmdserver: process exited unexpectedly with code 255

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


More information about the Mercurial-devel mailing list