caronc / apprise-api

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

Webinterface Notification panel report "Bad Attachment" when none as been chosed #168

Open federicofortini opened 9 months ago

federicofortini commented 9 months ago

:beetle: Describe the bug In version 0.9.8 the "notification" panel used to test configuration report an error: "Failed to send the notification(s).Bad attachment" even if did not chose anything at all. Notification invoked from CURL works fine.

:bulb: Screenshots and Logs 2024-01-29T17:06:08.741289391Z 2024-01-29 11:06:08,740 [WARNING] django: NOTIFY - 172.18.0.15 - Bad attachment specified 2024-01-29T17:06:08.742333386Z 2024-01-29 11:06:08,741 [WARNING] django.request: Bad Request: /notify/apprise 2024-01-29T17:06:08.743187507Z [pid: 147|app: 0|req: 52/72] 172.18.0.15 () {94 vars in 3559 bytes} [Mon Jan 29 11:06:08 2024] POST /notify/apprise => generated 14 bytes in 6 msecs (HTTP/1.1 400) 5 headers in 290 bytes (1 switches on core 0)

Here the screenshot from UI: Apprise

:computer: Your System Details: Docker container by Linuxserver: https://github.com/linuxserver/docker-apprise-api/releases/tag/v0.9.8-ls113

:crystal_ball: Additional context Create a telegram configuration, mine is: me=tgram://bot:key/chatid/?silent=yes go to "notification" tab and subit a test notification

caronc commented 9 months ago

That's really interesting, i can't reproduce that here. What browser (and version) are you using?

federicofortini commented 9 months ago

Goodmorning, I tested:

Let me know if i can do some additional test.

Federico

federicofortini commented 9 months ago

I tried also with caronc/apprise-api docker image, nothing changed.

Federico

caronc commented 9 months ago

I think i fixed this :rocket:

federicofortini commented 9 months ago

With latest version it works.

Thanks, Federico

fpatrick commented 2 months ago

I have the same error with v1.1.6-ls151 of linuxserver build. I've been hours trying to make it work.

Log:

2024-09-15 09:14:15,395 [WARNING] django: NOTIFY - 10.0.0.14 - Bad attachment using KEY: - Attachment support has been disabled 2024-09-15 09:14:15,395 [WARNING] django.request: Bad Request: /notify/ [pid: 144|app: 0|req: 5/5] 10.0.0.14 () {48 vars in 1423 bytes} [Sun Sep 15 09:14:15 2024] POST /notify/ => generated 14 bytes in 2 msecs (HTTP/1.1 400) 6 headers in 424 bytes (1 switches on core 0)

caronc commented 2 months ago

Related to: https://github.com/caronc/apprise/discussions/1200#discussioncomment-10652294

For now please use the Apprise Docker container that i maintain: https://hub.docker.com/r/caronc/apprise