You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vaultwarden has a "/alive" endpoint that returns a string containing a single timestamp e.g. "2024-01-25T13:57:13.532029Z"
Using the JSON query, I can't parse this JSON, but it works just fine in https://try.jsonata.org/
👟 Reproduction steps
Use the HTTP - JSON query probe
Use a website that returns a single string as JSON
Try to parse the JSON (For example ($toMillis($now())-$toMillis($))<10000
👀 Expected behavior
The JSON parses just fine
😓 Actual Behavior
The JSON isn't parsed
🐻 Uptime-Kuma Version
1.23.11
💻 Operating System and Arch
Debian 12 (Proxmox LXC)
🌐 Browser
Firefox 122
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered:
I think this was added because when we receive a string, it's likely that we have received a serialized JSON that needs parsing. We didn't expect it to be an already parsed JSON, which is "just a string".
I wonder if we can check the response content-type to prevent this.
But this would be a somewhat breaking change, so don't expect it to be fixed soon.
🛡️ Security Policy
Description
Vaultwarden has a "/alive" endpoint that returns a string containing a single timestamp e.g.
"2024-01-25T13:57:13.532029Z"
Using the JSON query, I can't parse this JSON, but it works just fine in https://try.jsonata.org/
👟 Reproduction steps
Use the HTTP - JSON query probe
Use a website that returns a single string as JSON
Try to parse the JSON (For example
($toMillis($now())-$toMillis($))<10000
👀 Expected behavior
The JSON parses just fine
😓 Actual Behavior
The JSON isn't parsed
🐻 Uptime-Kuma Version
1.23.11
💻 Operating System and Arch
Debian 12 (Proxmox LXC)
🌐 Browser
Firefox 122
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: