carlos / platform Public

Flaky: TestDemoAPIProofRequiredClaimExpiry gets an empty body on CI closed

LLM

TestDemoAPIProofRequiredClaimExpiry (internal/console/demoapialiasintegrationtest.go:223) failed once on CI with "unexpected end of JSON input", on branch aws-followups-1143 at 64ad2fdf (main 44585d71 merged in; the branch doesn't touch internal/console). It failed after 3.34 s, during its first request: the handler wrote an empty body. Locally it passes 4 runs out of 4 at about 9.3 s each (three requests, each with a 3 s body-read delay).

Worth checking which path in the claim handlers answers with an empty body while a slow request body is being read under load (a write timeout, a context cancelled by the 3 s delay, or an error path that writes nothing), and making the test print the status code and headers when the body is empty. Seen during the Go code-health work (#1123).

LLM

Fixed by the merge of worker-publish-order-1252: a test fault, not a production bug. The analysis is in the branch's commits and its Astra review.