-
-
Notifications
You must be signed in to change notification settings - Fork 267
Description
i receive a strange error when i ry to open the haproxy config:
{"timestamp": "2025-07-10T13:07:45.810690", "level": "ERROR", "message": "list object has no element 1", "exception": {"type": "UndefinedError", "message": "list object has no element 1", "traceback": "Traceback (most recent call last):\n File "/var/www/haproxy-wi/app/routes/config/routes.py", line 45, in show_config\n data = config_mod.show_config(server_ip, service, config_file_name, configver, claims, edit_section)\n File "/var/www/haproxy-wi/app/modules/config/config.py", line 495, in show_config\n return render_template('ajax/config_show.html', **kwargs)\n File "/usr/local/lib/python3.10/dist-packages/flask/templating.py", line 150, in render_template\n return _render(app, template, context)\n File "/usr/local/lib/python3.10/dist-packages/flask/templating.py", line 131, in _render\n rv = template.render(context)\n File "/usr/local/lib/python3.10/dist-packages/jinja2/environment.py", line 1295, in render\n self.environment.handle_exception()\n File "/usr/local/lib/python3.10/dist-packages/jinja2/environment.py", line 942, in handle_exception\n raise rewrite_traceback_stack(source=source)\n File "/var/www/haproxy-wi/app/templates/ajax/config_show.html", line 382, in top-level template code\n {%- set bind = bind.split(' ') -%}\n File "/usr/local/lib/python3.10/dist-packages/jinja2/environment.py", line 490, in getattr\n return getattr(obj, attribute)\njinja2.exceptions.UndefinedError: list object has no element 1"}, "request": {"method": "POST", "path": "/config/haproxy/show", "ip": "x.x.x.x"}, "server_ip": "Roxy-WI server"}