data-api-builder icon indicating copy to clipboard operation
data-api-builder copied to clipboard

[Bug]: Health / When inside a container, endpoints not found.

Open JerryNixon opened this issue 9 months ago • 0 comments

When DAB is running in its MCR container, health checks do not use the proper port.

{
  "status": "Unhealthy",
  "version": "1.5.29",
  "app-name": "dab_oss_1.5.29",
  "configuration": {
    "rest": true,
    "graphql": true,
    "caching": false,
    "telemetry": false,
    "mode": "Development"
  },
  "checks": [
    {
      "status": "Healthy",
      "name": "MSSQL",
      "tags": [
        "data-source"
      ],
      "data": {
        "response-ms": 0,
        "threshold-ms": 1000
      }
    },
    {
      "status": "Unhealthy",
      "name": "Color",
      "exception": "One or more errors occurred. (Connection refused (localhost:55644))",
      "tags": [
        "rest",
        "endpoint"
      ],
      "data": {
        "response-ms": -1,
        "threshold-ms": 1000
      }
    },
    {
      "status": "Unhealthy",
      "name": "Color",
      "exception": "One or more errors occurred. (Connection refused (localhost:55644))",
      "tags": [
        "graphql",
        "endpoint"
      ],
      "data": {
        "response-ms": -1,
        "threshold-ms": 1000
      }
    }
  ]
}

JerryNixon avatar Apr 17 '25 23:04 JerryNixon