caronc / apprise-api

A lightweight REST framework that wraps the Apprise Notification Library
https://hub.docker.com/r/caronc/apprise
MIT License
580 stars 50 forks source link

Apprise:// not working with or without tags #109

Closed pushc6 closed 1 year ago

pushc6 commented 1 year ago

:mega: Notification Service(s) Impacted Apprise:// (all notifications)

:lady_beetle: Describe the bug When using CLI or apprise:// from another apprise instance I get the below error.

[WARNING] django.request: Failed Dependency: /notify/apprise

when passing ?tags= I get the following:

03/13/2023 9:20:36 AM 2023-03-13 08:20:36,398 [ERROR] django.request: Internal Server Error: /notify/apprise 03/13/2023 9:20:36 AM Traceback (most recent call last): 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/core/handlers/exception.py", line 56, in inner 03/13/2023 9:20:36 AM response = get_response(request) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response 03/13/2023 9:20:36 AM response = wrapped_callback(request, *callback_args, callback_kwargs) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/views/generic/base.py", line 103, in view 03/13/2023 9:20:36 AM return self.dispatch(request, *args, *kwargs) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/utils/decorators.py", line 46, in _wrapper 03/13/2023 9:20:36 AM return bound_method(args, kwargs) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/utils/decorators.py", line 134, in _wrapped_view 03/13/2023 9:20:36 AM response = view_func(request, *args, kwargs) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func 03/13/2023 9:20:36 AM response = view_func(request, *args, *kwargs) 03/13/2023 9:20:36 AM File "/usr/lib/python3.10/site-packages/django/views/generic/base.py", line 142, in dispatch 03/13/2023 9:20:36 AM return handler(request, args, kwargs) 03/13/2023 9:20:36 AM File "/app/apprise-api/apprise_api/./api/views.py", line 622, in post 03/13/2023 9:20:36 AM if not TAG_VALIDATION_RE.match(content.get('tag')): 03/13/2023 9:20:36 AM TypeError: expected string or bytes-like object

:bulb: Screenshots and Logs Screen Shot 2023-03-13 at 09 22 24 Screen Shot 2023-03-13 at 09 22 08

:computer: Your System Details: Ubuntu - Docker - Latest LinuxServer.io apprise-api build

:crystal_ball: Additional context If I send notifications via the apprise-api UI tool they work. But via the CLI or via apprise:// from another apprise instance fails. None of my notifications are working right now.

caronc commented 1 year ago

I'll see if i can reproduce this.

Edit: I think this issue might not be related with apprise so much as the Apprise API?

Did this work before for you?

caronc commented 1 year ago

This is fixed now; i was able to reproduce your case.

Thank you for reporting this.

pushc6 commented 1 year ago

Awesome, thanks @caronc!