[GH-ISSUE #1059] NTFY Integration Sends plain JSON instead of formatted Notification #733

Closed
opened 2026-02-25 23:43:24 +03:00 by kerem · 5 comments
Owner

Originally created by @daytonrea on GitHub (Sep 8, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1059

Currently the NTFY integration is sending me plain JSON as a notification instead of the expected formatted notification.
IMG_2578

Originally created by @daytonrea on GitHub (Sep 8, 2024). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1059 Currently the NTFY integration is sending me plain JSON as a notification instead of the expected formatted notification. ![IMG_2578](https://github.com/user-attachments/assets/b2dfdc8b-16ab-4a97-8d24-eff011c1b7bd)
kerem closed this issue 2026-02-25 23:43:24 +03:00
Author
Owner

@cuu508 commented on GitHub (Sep 8, 2024):

  • Can you please send me a link to the check in email (to contact at healthchecks io)?
  • Can you reproduce the problem if you create a new project, create a ntfy integration in it and press the "Test!" button?
  • What ntfy client are you using? Do you see the same problem with other clients (for example, in the web interface)?
<!-- gh-comment-id:2336541129 --> @cuu508 commented on GitHub (Sep 8, 2024): * Can you please send me a link to the check in email (to contact at healthchecks io)? * Can you reproduce the problem if you create a new project, create a ntfy integration in it and press the "Test!" button? * What ntfy client are you using? Do you see the same problem with other clients (for example, in the web interface)?
Author
Owner

@daytonrea commented on GitHub (Sep 10, 2024):

yes problem is reproduced when creating a new project and using test button, I am using ios client but problem is also reproduced on the web ui. do you want me to email the link to contact at health checks dot io?

<!-- gh-comment-id:2341279940 --> @daytonrea commented on GitHub (Sep 10, 2024): yes problem is reproduced when creating a new project and using test button, I am using ios client but problem is also reproduced on the web ui. do you want me to email the link to contact at health checks dot io?
Author
Owner

@cuu508 commented on GitHub (Sep 11, 2024):

I reproduced the issue and am looking into it. Sorry about the couple of test notifications you received.

<!-- gh-comment-id:2342910937 --> @cuu508 commented on GitHub (Sep 11, 2024): I reproduced the issue and am looking into it. Sorry about the couple of test notifications you received.
Author
Owner

@cuu508 commented on GitHub (Sep 11, 2024):

Ah, the problem is the server URL.

For your integration the server URL is https://ntfy.sh/<topic_name>.

When posting message as JSON, the server URL should not contain the topic name and should be just https://ntfy.sh (as the topic name is contained in the JSON payload): https://docs.ntfy.sh/publish/#publish-as-json

<!-- gh-comment-id:2342922308 --> @cuu508 commented on GitHub (Sep 11, 2024): Ah, the problem is the server URL. For your integration the server URL is `https://ntfy.sh/<topic_name>`. When posting message as JSON, the server URL should not contain the topic name and should be just `https://ntfy.sh` (as the topic name is contained in the JSON payload): https://docs.ntfy.sh/publish/#publish-as-json
Author
Owner

@cuu508 commented on GitHub (Sep 11, 2024):

I'm thinking about adding a help text under the "Server URL" field:

image

I know this may hard to say after the fact, but do you think this would have helped?

<!-- gh-comment-id:2342935570 --> @cuu508 commented on GitHub (Sep 11, 2024): I'm thinking about adding a help text under the "Server URL" field: ![image](https://github.com/user-attachments/assets/db1361cc-70e0-4929-be56-7a92e2621ac9) I know this may hard to say after the fact, but do you think this would have helped?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#733
No description provided.