-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
Description
I'm using mailrise in a docker container as well as bark for iOS & gotify for android in docker containers to pass mails into notifs
Gotify works flawlessly, while for bark i can't get critical alerts to function.
If I manually tell apprise to do apprise -vv -t "<title>" -b "<body>" "bark://localhost:32769/suTqkF2SNbYcHZqLtadgPc/?level=critical" it works.
my mailrise.conf:
configs:
gotify:
urls:
- gotify://localhost:32768/<key>/?priority=high
mailrise:
title_template: "$subject"
body_template: "$body"
body_format: text
bark:
urls:
- bark://localhost:32769/<key>/?level=critical&volume=5
mailrise:
title_template: "$subject"
body_tempplate: "$body"
body_format: text
smtp:
auth:
basic:
xxxx: xxxx
logs:
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.12/logging/__init__.py", line 1160, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/__init__.py", line 999, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/__init__.py", line 703, in format
record.message = record.getMessage()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/logging/__init__.py", line 392, in getMessage
msg = msg % self.args
~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
File "/home/mailrise/.local/bin/mailrise", line 8, in <module>
sys.exit(run())
File "/home/mailrise/.local/lib/python3.12/site-packages/mailrise/skeleton.py", line 171, in run
main(sys.argv[1:])
File "/home/mailrise/.local/lib/python3.12/site-packages/mailrise/skeleton.py", line 163, in main
eloop.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 638, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1971, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run
self._context.run(self._callback, *self._args)
File "/home/mailrise/.local/lib/python3.12/site-packages/mailrise/smtp.py", line 185, in _apprise_notify
success = await ap_instance.async_notify(
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/Apprise.py", line 407, in async_notify
sequential_calls, parallel_calls = self._create_notify_calls(
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/Apprise.py", line 432, in _create_notify_calls
all_calls = list(self._create_notify_gen(*args, **kwargs))
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/Apprise.py", line 453, in _create_notify_gen
if len(self) == 0:
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/Apprise.py", line 887, in __len__
else len(s.servers()) for s in self.servers])
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/AppriseConfig.py", line 313, in servers
response.extend(entry.servers())
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/config/ConfigBase.py", line 214, in servers
servers, configs = fn(content=content, asset=asset)
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/config/ConfigBase.py", line 1221, in config_parse_yaml
plugin = N_MGR[results['schema']](**results)
File "/home/mailrise/.local/lib/python3.12/site-packages/apprise/plugins/NotifyBark.py", line 267, in __init__
self.logger.warning(
Message: 'The specified Bark level ({}) is not valid '
Arguments: ('critical',)
For some reason the apprise docs don't list critical as a valid parameter, but the bark docs do.
Reactions are currently unavailable