Open rambo opened 2 weeks ago
root@868963b93074:/app# rasenmaeher_api healthcheck --services {"all_ok": true, "products": {"fake": true, "tak": true}} Traceback (most recent call last): File "/usr/local/bin/rasenmaeher_api", line 8, in <module> sys.exit(rasenmaeher_api_cli()) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/rasenmaeher_api/console.py", line 240, in rasenmaeher_api_cli cli_group() # pylint: disable=no-value-for-parameter ^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/rasenmaeher_api/console.py", line 92, in do_http_healthcheck ctx.exit(ctx.obj["loop"].run_until_complete(doit())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/rasenmaeher_api/console.py", line 88, in doit if payload["healthcheck"] != "success": ~~~~~~~^^^^^^^^^^^^^^^ KeyError: 'healthcheck' root@868963b93074:/app#