[GH-ISSUE #333] can't query tags that contain certain characters #254

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

Originally created by @brammeleman on GitHub (Feb 17, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/333

Hi,
I have some tags that contain equal signs in it. When using the API, I can't filter those particular checks.
For example, to get the checks that match "a=b", the query url would look like:

https://hc.example.com/api/v1/checks/?tag=a%3Db

With the tag a=b urlencoded to a%3Db because the query tag=a=b would be nonsensical.
This does not return any matches. I tried to figure out why this does not work.. without any result so far...
I did test tags with other funny characters, like %, & and $ in it (urlencoded) and that seems to work fine. A tag with ! in it also fails to be queried.

Bests,

Bram

Originally created by @brammeleman on GitHub (Feb 17, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/333 Hi, I have some tags that contain equal signs in it. When using the API, I can't filter those particular checks. For example, to get the checks that match "a=b", the query url would look like: ``` https://hc.example.com/api/v1/checks/?tag=a%3Db ``` With the tag `a=b` urlencoded to `a%3Db` because the query `tag=a=b` would be nonsensical. This does not return any matches. I tried to figure out why this does not work.. without any result so far... I did test tags with other funny characters, like `%`, `&` and `$` in it (urlencoded) and that seems to work fine. A tag with `!` in it also fails to be queried. Bests, Bram
kerem closed this issue 2026-02-25 23:41:47 +03:00
Author
Owner

@cuu508 commented on GitHub (Feb 18, 2020):

https://hc.example.com/api/v1/checks/?tag=a%3Db

This looks good and should work. How does the request look in server's access log? Maybe the encoding goes wrong on client side, and the server sees something else.

<!-- gh-comment-id:587390760 --> @cuu508 commented on GitHub (Feb 18, 2020): > https://hc.example.com/api/v1/checks/?tag=a%3Db This looks good and should work. How does the request look in server's access log? Maybe the encoding goes wrong on client side, and the server sees something else.
Author
Owner

@brammeleman commented on GitHub (Feb 18, 2020):

Excuse me, sorry for bothering you. There was an error in my testing code that altered the tags and therefore could not find them anymore. ;-)

<!-- gh-comment-id:587468283 --> @brammeleman commented on GitHub (Feb 18, 2020): Excuse me, sorry for bothering you. There was an error in my testing code that altered the tags and therefore could not find them anymore. ;-)
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#254
No description provided.