What app is this about, and its version: mautrix_whatsapp, Version: 0.2512.0~ynh1
What YunoHost version are you running: YunoHost 12.1.37 (stable)
What type of hardware are you using: Old laptop or computer
Describe your issue
Hi everyone,
I’m trying to install and configure the Mautrix-WhatsApp bridge on my YunoHost server. The installation went smoothly, but when I try to save the configuration via the YunoHost web interface, I get the following error:
Error: “500”
Action: “PUT” /yunohost/api/apps/mautrix_whatsapp__2/config/main
Error message: Unexpected server error
Traceback (most recent call last):
…
KeyError: ‘enable_relaybot’
What I’ve tried so far:
Upgraded the app to the testing branch
Checked the configuration files /var/www/mautrix_whatsapp/config.yaml and /etc/yunohost/apps/mautrix_whatsapp/settings.yml. Both contain the correct settings:
/var/www/mautrix_whatsapp/config.yaml:
relay:
enabled: true
admin_only: true
/etc/yunohost/apps/mautrix_whatsapp/settings.yml:
enable_relaybot: ‘true’
Restarted the mautrix_whatsapp.service and yunohost-api services.
Logs:
The bridge starts successfully (see journalctl -u mautrix_whatsapp.service).
The error only occurs in the YunoHost web interface.
Questions:
Is there a known fix for this issue?
Could this be a bug in the YunoHost integration of the app?
Is there a way to manually correct the configuration?
Thanks for your help!
Share relevant logs or error messages
Fehler: “500”
Aktion: “PUT” /yunohost/api/apps/mautrix_whatsapp/config/main
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/moulinette/interfaces/api.py”, line 430, in process
ret = self.actionsmap.process(arguments, timeout=30, route=route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/moulinette/actionsmap.py”, line 580, in process
return func(**arguments)
^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/log.py”, line 532, in func_wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/app.py”, line 2263, in app_config_set
return config.set(key, value, args, args_file, operation_logger=operation_logger)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py”, line 596, in set
self.form = self._ask(
^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/configpanel.py”, line 897, in _ask
form = prompt_or_validate_form(
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/form.py”, line 2138, in prompt_or_validate_form
if not option.is_visible(context):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/form.py”, line 435, in is_visible
return evaluate_simple_js_expression(self.visible, context=context) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/form.py”, line 224, in evaluate_simple_js_expression
return evaluate_simple_ast(node, context) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/yunohost/utils/form.py”, line 109, in evaluate_simple_ast
return context[node.id]
~~~~~~~^^^^^^^^^
KeyError: ‘enable_relaybot’