Skip to content

Standalone Application Error #47

Description

@EnayUA

Hello,

just try to start standalone app and have next error:

2024-06-12 15:43:05,441 | ERROR | app Exception on /api/login/hosts/ [GET] Traceback (most recent call last):
File "/home/user/.local/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.local/lib/python3.12/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 "/webhook/./app.py", line 182, in apiLoginHosts return api_login.getApiLoginHosts(MIST_HOSTS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/webhook/routes/api_login.py", line 44, in getApiLoginHosts data.append({"value": MIST_HOSTS[key], "viewValue": key})
~~~~~~~~~~^^^^^
TypeError: string indices must be integers, not 'str'

Previous version with current config worked!
Python3 v3.10 & 3.12
Ubuntu Server 22.04

Docker image have the same error to.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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