BUG: /health returns text/plain not application/json — smoke tests fail #59
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
GET /healthreturnstext/plainbody"healthy"instead of JSON{"status":"ok"}.Impact
deploy/api-smoke.sh) skips/healthbut any external health-checker expecting JSON will failLocation
services/mam-api/src/index.js:38This is correct in the code. The live deploy at
http://10.0.0.25:42423/healthreturnstext/plain+ string"healthy". The response header wasContent-Type: text/plainand body washealthy(8 bytes, no braces).Hypothesis: The live deploy is running a different image than the current source, OR the nginx reverse proxy in front (web-ui) is terminating
/healthbefore it reaches mam-api. The web-ui nginx config (currently unreviewed) may intercept/healthand return static text.Check
services/web-ui/nginx.conf— if there's a location block catching/healthat the proxy level, that explains the discrepency.