Skip to content

Add Subcommads button fails with 500 error #528

@DanielMicrosoft

Description

@DanielMicrosoft
Image Image

Error details:

[2025-10-22 15:28:19,876] ERROR in app: Exception on /AAZ/Editor/Workspaces/nginx/Resources/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25naW54Lm5naW54cGx1cy9uZ2lueGRlcGxveW1lbnRzL3t9/V/MjAyNS0wMy0wMS1wcmV2aWV3/Subresources [POST]
Traceback (most recent call last):
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\api\editor.py", line 761, in editor_workspace_subresources
    manager.add_subresource_by_arg_var(resource_id, version, arg_var, cg_names, ref_args_options)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 920, in add_subresource_by_arg_var
    self._set_cfg_editor(cfg_editor)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 351, in _set_cfg_editor
    or self._build_command_tree_leaf_from_aaz_ref(node, name, aaz_ref)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 948, in _build_command_tree_leaf_from_aaz_ref
    if (ref_v_name := aaz_ref.get(' '.join(cmd_names), None)) \
                      ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
ERROR:aaz_dev.app.app:Exception on /AAZ/Editor/Workspaces/nginx/Resources/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25naW54Lm5naW54cGx1cy9uZ2lueGRlcGxveW1lbnRzL3t9/V/MjAyNS0wMy0wMS1wcmV2aWV3/Subresources [POST]
Traceback (most recent call last):
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\flask\app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\api\editor.py", line 761, in editor_workspace_subresources
    manager.add_subresource_by_arg_var(resource_id, version, arg_var, cg_names, ref_args_options)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 920, in add_subresource_by_arg_var
    self._set_cfg_editor(cfg_editor)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 351, in _set_cfg_editor
    or self._build_command_tree_leaf_from_aaz_ref(node, name, aaz_ref)
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\dlanguiller\source\repos\.venv_published\Lib\site-packages\aaz_dev\command\controller\workspace_manager.py", line 948, in _build_command_tree_leaf_from_aaz_ref
    if (ref_v_name := aaz_ref.get(' '.join(cmd_names), None)) \
                      ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
INFO:werkzeug:127.0.0.1 - - [22/Oct/2025 15:28:19] "POST /AAZ/Editor/Workspaces/nginx/Resources/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL25naW54Lm5naW54cGx1cy9uZ2lueGRlcGxveW1lbnRzL3t9/V/MjAyNS0wMy0wMS1wcmV2aWV3/Subresources HTTP/1.1" 500 -

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions