II run an hg web based server using uwsgi to serve a wsgi application.

My tests work fine, but one person running a 6.1.1 mercurial client gets a
502 'unknown gateway' error when trying to push or test for outgoing
changes. He has no problem accessing the web server interface. Inspection
of the weblog reveals he sends a ...repo/cmd=known my similar push and out
requests don't send this.

I get a traceback from a 6.6.3 mercurial server when I request

https://<user>:<pasword>@hostname/hg/repo/?cmd=known

traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/mercurial/hgweb/hgwebdir_mod.py",
line 385, in run_wsgi
    for r in self._runwsgi(req, res):
  File "/usr/lib/python3.11/site-packages/mercurial/hgweb/hgweb_mod.py",
line 363, in run_wsgi
    for r in self._runwsgi(req, res, repo):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mercurial/hgweb/hgweb_mod.py",
line 378, in _runwsgi
    handled = wireprotoserver.handlewsgirequest(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mercurial/wireprotoserver.py",
line 229, in handlewsgirequest
    _callhttp(repo, req, res, proto, cmd)
  File "/usr/lib/python3.11/site-packages/mercurial/wireprotoserver.py",
line 321, in _callhttp
    rsp = wireprotov1server.dispatch(repo, proto, cmd, accesshidden)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mercurial/wireprotov1server.py",
line 89, in dispatch
    args = proto.getargs(spec)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/mercurial/wireprotoserver.py",
line 82, in getargs
    data[k] = knownargs[k][0]
              ~~~~~~~~~^^^
KeyError: b'nodes'

-- 
Robin Becker
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to