Open ArtJuice opened 4 months ago
Hi @ArtJuice , sorry for the delay, I'll check that and I'll let you know
Ok, I fixed it. There was a small issue when the MIST_HOSTS is not set in the env file/variables. This has been fixed and a new docker image is available too.
Can you check it?
Thanks
Hi @tmunzer, Sorry for the delay in replying - yes, it's work now. But in new version i have new problem - "Webhook Configuration must be updated" and this update does not finish...
Hi @ArtJuice ,
Can you post the logs from the server?
Thanks
Hi @tmunzer , I sent you the link to the logs to your email.
Thx
Hi @ArtJuice ,
sorry for the late reply, I didn't saw the messages... I checked the logs, and it seems to be an issue to write the webhook data into the DB. The connection to the DB seems to be ok, the app is able to save the flask-sessions, but when it is trying to save the webhook data it generates the error below:
2024-07-19 15:24:30,511 | ERROR | logger model_orgSettings - Error when saving the webhook secret in the DB for org xxxxxxxxxxxxxxx
I'll try to check that on my side, but if you have (and if you can) the MongoDB logs, can you share them with me?
Thanks
Hi @ArtJuice ,
Sorry for the time it took... The problem should have been fixed now (there was an issue with the latest mongo client versions).
Regards, Thomas
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.