Open undaunt opened 10 months ago
It sounds like you didn't enable email notifications on your server
@wunter8 I'm attempting to post a JSON webhook to ntfy from Overseerr, nothing to do with emails. The templated email line above refers to the fact that my user record in Overseerr has an email. That's why I'm wondering if there's something in the code that makes ntfy think I want to send/receive an email when I do not, based on the JSON payload field name.
Since you're including an "email" field in the JSON body, ntfy thinks you want to forward the notification to that email address
I would expect both of the JSON bodies you posted above to fail, though, because right now ntfy will reject unknown fields (such as notification_type, username, avatar, etc.)
:lady_beetle: Describe the bug When attempting to test notifications from Overseerr to ntfy, if the line
"email": "{{notifyuser_email}}",
is included in the webhook template, ntfy responds with an error that email notifications are not enabled.:computer: Components impacted ntfy server
:bulb: Screenshots and/or logs
Error sending webhook notification {"type":"TEST_NOTIFICATION","subject":"Test Notification","errorMessage":"Request failed with status code 400","response":{"code":40001,"http":400,"error":"e-mail notifications are not enabled","link":"https://ntfy.sh/docs/config/#e-mail-notifications"}}
:crystal_ball: Additional context If I modify the template from the following:
to this
then it works without issue. For reference, my URL is https://ntfy.domain.com/?auth=bearertoken