Skip to content

Health tab does not always show detailed error message #12408

@johnstcn

Description

@johnstcn

The "Access URL" and "Websocket" pages under "Health" do not show detailed error messages or further troubleshooting information.

For example:

Given: Coder instance with misconfigured scheme in CODER_ACCESS_URL (e.g. https://localhost:7080 which is generally HTTP and not HTTPS)

When: you hit the health tab

Then: you see the following information:

Severity: error
Access URL: https://localhost:7080
Reachable: No
Status Code: 0

image

But the /api/v2/debug/health endpoint provides more detailed information, e.g.:

"access_url": {
"healthy": false,
"severity": "error",
"warnings": [],
"dismissed": false,
"access_url": "https://localhost:7080/",
"reachable": false,
"status_code": 0,
"healthz_response": "",
"error": "EACS03: get healthz endpoint: Get \"https://localhost:7080/healthz\": http: server gave HTTP response to HTTPS client"
},

Ditto for websocket check.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions