[GH-ISSUE #1132] Additional blank checks are created through API? #785

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

Originally created by @rwjack on GitHub (Mar 5, 2025).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1132

Hi, I'm having this odd issue and I could use a bit of a sanity check.

I create checks like this:

curl --silent "$HC_CHECK_URL/api/v3/checks/" \
    --header "X-Api-Key: $HC_API_KEY" \
    --data @- | jq <<-EOF
{
    "name": "${image_local}",
    "slug": "${image_slug}",
    "timeout": 5184000,
    "grace": 3600,
    "tz": "Redacted",
    "channels": "Redacted",
    "unique": ["slug"]
}
EOF

And this seems to trigger the correct check slug. I see a new event/ping there, but it also creates these empty checks.

To note, the check name (image_local variable) changes on every build, but the slug (image_slug) doesn't change. I've noticed that after the initial check creation, new calls to the same check don't update the name. Is this by design?

Image

Originally created by @rwjack on GitHub (Mar 5, 2025). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1132 Hi, I'm having this odd issue and I could use a bit of a sanity check. I create checks like this: ```bash curl --silent "$HC_CHECK_URL/api/v3/checks/" \ --header "X-Api-Key: $HC_API_KEY" \ --data @- | jq <<-EOF { "name": "${image_local}", "slug": "${image_slug}", "timeout": 5184000, "grace": 3600, "tz": "Redacted", "channels": "Redacted", "unique": ["slug"] } EOF ``` And this seems to trigger the correct check slug. I see a new event/ping there, but it also creates these empty checks. To note, the check name (image_local variable) changes on every build, but the slug (image_slug) doesn't change. I've noticed that after the initial check creation, new calls to the same check don't update the name. Is this by design? ![Image](https://github.com/user-attachments/assets/1895c096-5125-4c9a-9c3a-0c7a8a842adc)
kerem closed this issue 2026-02-25 23:43:35 +03:00
Author
Owner

@rwjack commented on GitHub (Mar 5, 2025):

What's very odd is when I do this manually, it properly updates the name, and doesn't create the shadow check, and when it goes through CI, it cannot update the name and creates the shadow check instead, but still logs the ping within the correct check with the correct slug.

Also forgot to mention that I'm on 3.9

<!-- gh-comment-id:2702335407 --> @rwjack commented on GitHub (Mar 5, 2025): What's very odd is when I do this manually, it properly updates the name, and doesn't create the shadow check, and when it goes through CI, it cannot update the name and creates the shadow check instead, but still logs the ping within the correct check with the correct slug. Also forgot to mention that I'm on 3.9
Author
Owner

@rwjack commented on GitHub (Mar 5, 2025):

Sorted it out, was a hidden jq command that was breaking EOF in the CI...

<!-- gh-comment-id:2702342333 --> @rwjack commented on GitHub (Mar 5, 2025): Sorted it out, was a hidden jq command that was breaking EOF in the CI...
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#785
No description provided.