Skip to content

fix: record container proxy HTTP failures without private data - #4657

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4656
Oct 29, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4656

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The hosted journey in #4656 received a state HTTP 500 with no Python page_fault record. The installed Containers SDK 0.3.7 can produce an ordinary 500 on connection loss without logging an exception. The failed run pins that SDK version; its 342-byte Resource Timing transfer is consistent with the SDK's 42-byte disconnect body, but the retained records do not prove that was the response.

Record forwarded HTTP 5xx responses at the session boundary, distinguishing Python's delivery stamp, the SDK's exact disconnect response, and unclassified failures. The record contains only method, status and classification; Cloudflare supplies its trace identity. Response inspection is bounded, and private URLs and body contents are excluded. Successful responses take no new body-read or logging work. Retries and success assertions are unchanged.

The diagnostic regression failed before the change and passes afterward; all 63 Worker routing tests and the Worker TypeScript check pass. It covers disconnect classification, oversized private content, adapter faults, unchanged response bodies and silent successful responses.

This repairs the missing diagnostic, not the unexplained connection failure. #4656 remains open: after deployment, a recurrence can identify the boundary through component=leaf-container, event=http_error, and its native trace ID. A confirmed disconnect still needs container/platform lifecycle evidence to explain why the connection was lost.

Refs #4656 — automated triage

The Containers SDK can return a disconnect 500 without logging an exception. Retain a bounded classification at the forwarding boundary so a recurrence can be joined to its native trace without recording private URLs or response bodies. Keep the original response and retry behavior.

Refs #4656
@leaf-agent
leaf-agent merged commit 6f75bae into main Oct 29, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4656 branch October 29, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant