mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #422] Valid JSON response rejected by update endpoint #313
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#313
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @msfjarvis on GitHub (Sep 5, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/422
While working on my Rust library for healthchecks (source available here) I came across a HTTP 400 response from the implementation of this API method.
The JSON I was sending is
"{\"name\":\"dl_msfjarvis_dev_sync\",}"which appears to be valid according to all the JSON validators and linters I had at hand but is rejected by the site.Is this something that can be fixed or should I attempt to work around it myself?
@cuu508 commented on GitHub (Sep 5, 2020):
Hi @msfjarvis!
"{\"name\":\"dl_msfjarvis_dev_sync\",}"is a valid JSON string, but the API expects a JSON object:(not enclosed in quotes, no escaping for inner quotes, no trailing comma)
If I've misunderstood the question, please let me know!
@msfjarvis commented on GitHub (Sep 5, 2020):
That'd certainly explain it. I'll fix this on my end, thanks for the help!