Skip to content

Show actionable SQLPage error reports - #1711

Open
lovasoa wants to merge 5 commits into
mainfrom
codex/actionable-error-reports
Open

lovasoa wants to merge 5 commits into
mainfrom
codex/actionable-error-reports

Conversation

@lovasoa

@lovasoa lovasoa commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

SQLPage authors see the parser or database message first, with the original SQL file and line numbers when available. One disclosure shows the request and runtime. Request headers appear in the plain-text report. The copy button confirms success with a checkmark, and the same report is available as a text file if clipboard access is unavailable. Production visitors get a support reference that appears in the server logs, including when a page fails after sending some content.

The tokenizer can identify an exact character. Parser errors carry the parser’s own wording and a statement start. Database errors carry their authored statement range and show the SQL sent to the driver separately. The report uses the cached source that actually ran. Existing custom error templates retain their previous fields.

In development, an operator can configure development_report_key_sha256 and send X-SQLPage-Report-Key on a diagnostic request. Its copied report includes cookie and authorization values, repeated headers and the submitted body, including uploads within the capture limit. These responses disable caching. Other development requests redact credential headers.

@datadog-official

datadog-official Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5a6e627 | Docs | Give us feedback!

@lovasoa
lovasoa marked this pull request as ready for review December 5, 2026 23:11
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