View of repository with branches produces error

Benny Bürger buerger at simba.de
Mon May 16 13:29:30 UTC 2022


Hi,

I get the following error when I want to view a mercurial repository with two branches.
Currently we are not working with branches and I just wanted to evaluate the feature...
If I can provide more data just let me know. 

Regards,
Benny

-----Ursprüngliche Nachricht-----
Von: Kallithea <build at simba.de> 
Gesendet: Montag, 16. Mai 2022 15:22
An: Benny Bürger <buerger at simba.de>
Betreff: WebApp Error: routes.util.GenerationException: Could not generate URL. Called with args: ('compare_url',) {'repo_name': 'GuiDev/Simba.Core', 'org_ref_type': 'Rev', 'org_ref_name': 'tip', 'other_repo': 'Patches/Simba.Core', 'other_ref_type': 'Rev', 'oth...

TRACEBACK:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tg/appwrappers/session.py", line 71, in __call__
    response = self.next_handler(controller, environ, context)
  File "/usr/local/lib/python3.8/dist-packages/tg/appwrappers/i18n.py", line 71, in __call__
    return self.next_handler(controller, environ, context)
  File "/usr/local/lib/python3.8/dist-packages/tg/wsgiapp.py", line 243, in _dispatch
    return controller(environ, context)
  File "/usr/local/lib/python3.8/dist-packages/kallithea/controllers/base.py", line 523, in __call__
    return super(BaseController, self).__call__(environ, context)
  File "/usr/local/lib/python3.8/dist-packages/tg/controllers/dispatcher.py", line 118, in __call__
    response = self._perform_call(context)
  File "/usr/local/lib/python3.8/dist-packages/tg/controllers/dispatcher.py", line 107, in _perform_call
    r = self._call(action, params, remainder=remainder, context=context)
  File "/usr/local/lib/python3.8/dist-packages/tg/controllers/decoratedcontroller.py", line 129, in _call
    output = controller_caller(context_config, bound_controller_callable, remainder, params)
  File "/usr/local/lib/python3.8/dist-packages/tg/controllers/decoration.py", line 21, in _decorated_controller_caller
    return application_controller_caller(tg_config, controller, remainder, params)
  File "/usr/local/lib/python3.8/dist-packages/tg/configurator/components/dispatch.py", line 114, in _call_controller
    return controller(*remainder, **params)
  File "<decorator-gen-4>", line 2, in index
    
  File "/usr/local/lib/python3.8/dist-packages/kallithea/lib/auth.py", line 529, in __wrapper
    return func(*fargs, **fkwargs)
  File "<decorator-gen-3>", line 2, in index
    
  File "/usr/local/lib/python3.8/dist-packages/kallithea/lib/auth.py", line 572, in __wrapper
    return func(*fargs, **fkwargs)
  File "/usr/local/lib/python3.8/dist-packages/kallithea/controllers/summary.py", line 151, in index
    return base.render('summary/summary.html')
  File "/usr/local/lib/python3.8/dist-packages/kallithea/controllers/base.py", line 62, in render
    return render_template({'url': url}, 'mako', template_path)
  File "/usr/local/lib/python3.8/dist-packages/tg/render.py", line 208, in render
    kwargs['result'] = render_function(template_name, tg_vars, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/tg/renderers/mako.py", line 133, in __call__
    return cached_template(template_name, render_template, cache_key=cache_key,
  File "/usr/local/lib/python3.8/dist-packages/tg/render.py", line 274, in cached_template
    return render_func()
  File "/usr/local/lib/python3.8/dist-packages/tg/renderers/mako.py", line 131, in render_template
    return Markup(template.render_unicode(**template_vars))
  File "/usr/local/lib/python3.8/dist-packages/mako/template.py", line 481, in render_unicode
    return runtime._render(
  File "/usr/local/lib/python3.8/dist-packages/mako/runtime.py", line 878, in _render
    _render_context(
  File "/usr/local/lib/python3.8/dist-packages/mako/runtime.py", line 920, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/local/lib/python3.8/dist-packages/mako/runtime.py", line 947, in _exec_template
    callable_(context, *args, **kwargs)
  File "_base_root_html", line 211, in render_body
    
  File "_base_base_html", line 42, in render_body
    
  File "summary_summary_html", line 172, in render_main
    
  File "_base_base_html", line 323, in render_repo_context_bar
    
  File "/usr/local/lib/python3.8/dist-packages/kallithea/lib/webutils.py", line 90, in __call__
    return request.environ['routes.url'](*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/routes/util.py", line 440, in __call__
    raise GenerationException(
routes.util.GenerationException: Could not generate URL. Called with args: ('compare_url',) {'repo_name': 'GuiDev/Simba.Core', 'org_ref_type': 'Rev', 'org_ref_name': 'tip', 'other_repo': 'Patches/Simba.Core', 'other_ref_type': 'Rev', 'other_ref_name': 'tip', 'merge': 1}


ENVIRON:
	HTTP_ACCEPT: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
	HTTP_ACCEPT_ENCODING: 'gzip, deflate'
	HTTP_ACCEPT_LANGUAGE: 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7'
	HTTP_CACHE_CONTROL: 'max-age=0'
	HTTP_CONNECTION: 'keep-alive'
	HTTP_COOKIE: 'SL_G_WPT_TO=de; SL_GWPT_Show_Hide_tmp=undefined; SL_wptGlobTipTmp=undefined; kallithea=9b9b29d61d1512c1c58ada07934dbb0b8ecd23992d849be5e2264205a95450e105ac212f'
	HTTP_HOST: 'repository:5000'
	HTTP_REFERER: 'http://repository:5000/Patches'
	HTTP_UPGRADE_INSECURE_REQUESTS: '1'
	HTTP_USER_AGENT: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36'
	PATH_INFO: '/Patches/Simba.Core'
	QUERY_STRING: ''
	REMOTE_ADDR: '192.168.98.97'
	REMOTE_HOST: '192.168.98.97'
	REMOTE_PORT: '2116'
	REQUEST_METHOD: 'GET'
	SCRIPT_NAME: ''
	SERVER_NAME: 'repository'
	SERVER_PORT: '5000'
	SERVER_PROTOCOL: 'HTTP/1.1'
	SERVER_SOFTWARE: 'waitress'


WSGI:
	beaker.cache: <beaker.cache.CacheManager object at 0x7f891cfa92e0>
	beaker.get_session: <bound method SessionApplicationWrapper._get_session of <tg.appwrappers.session.SessionApplicationWrapper object at 0x7f891cf94820>>
	beaker.session: {'_domain': None, '_path': '/', '_creation_time': 1652686027.6668298, '_accessed_time': 1652707343.6149232, 'authuser': {'user_id': 2, 'is_external_auth': False}, '_session_csrf_secret_token': '112118177828920010793297533312099285397'}
	paste.registry: <tg.support.registry.Registry object at 0x7f891c3c43a0>
	pylons.routes_dict: {'repo_name': 'Patches/Simba.Core', 'controller': 'summary', 'action': 'index'}
	routes.cached_hostinfo: {'protocol': 'http', 'host': 'repository:5000'}
	routes.route: <routes.route.Route object at 0x7f891c2fb940>
	routes.url: <routes.util.URLGenerator object at 0x7f891f0e5f70>
	tg.locals: <tg.wsgiapp.RequestLocals object at 0x7f891cc6e580>
	tg.routes_dict: {'repo_name': 'Patches/Simba.Core', 'controller': 'summary', 'action': 'index'}
	webob._parsed_query_vars: (GET([]), '')
	webob.adhoc_attrs: {'authuser': <AuthUser 2: 'buerger'>, 'ip_addr': '192.168.98.97', 'needs_csrf_check': False, 'routes_local': {'mapper': <kallithea.controllers.routing.Mapper object at 0x7f891c3c4490>, 'host': 'repository:5000', 'protocol': 'http', 'redirect': <function redirect at 0x7f891f1c21f0>}}
	wsgi.errors: <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>
	wsgi.file_wrapper: <class 'waitress.buffers.ReadOnlyFileBasedBuffer'>
	wsgi.input: <_io.BytesIO object at 0x7f891cfc6590>
	wsgi.input_terminated: True
	wsgi.multiprocess: False
	wsgi.multithread: True
	wsgi.run_once: False
	wsgi.url_scheme: 'http'
	wsgi.version: (1, 0)
	wsgiorg.routing_args: (<routes.util.URLGenerator object at 0x7f891f0e5f70>, {'repo_name': 'Patches/Simba.Core', 'controller': 'summary', 'action': 'index'})


REQUEST:
	<Request at 0x7f891c3c44c0 GET http://repository:5000/error/document>


More information about the kallithea-general mailing list