Skip to content

[BUG] expects XML but getting JSON #1925

@gofastgirl

Description

@gofastgirl

Environment

Self-Hosted (Bare Metal)

System

kubuntu firefox (Dashy is in Proxmox container)

Version

3.1.1

Describe the problem

I am using the Dashy LXC container from community-scripts.github.io. I also have a HealthCheck local instance. I am adding a widget and getting "An error occurred, see the logs for more info. Unable to fetch data""
Firefox console shows:
XML Parsing Error: not well-formed
Location: http://192.168.99.49:4000/status-check/?&url=http%3A%2F%2F192.168.99.19&enableInsecure=true
Line Number 1, Column 1:
When I curl (from dashy) I get:
curl "http://192.168.99.49:4000/status-check/?&url=http%3A%2F%2F192.168.99.19&enableInsecure=true"
{"statusCode":200,"statusText":"OK","serverName":false,"successStatus":true,"timeTaken":9,"message":"✅ Server responded with 200 - OK. \n⏱️Took 9 ms"}

Yes, I have a read-only api key. Here's config:
{
"type": "HealthChecks",
"options": {
"host": "https://192.168.99.19/",
"apiKey": "hcr....."
},

Additional info

No response

Please tick the boxes

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working

Projects

Status

Awaiting Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions