#10089 Errors when running sqlite files with D1 are very unhelpful
Core issue (SQLite errors show offset not line number) unresolved. PR #10769 fixed only the "report to Cloudflare" prompt. Internal Jira CFSQL-1390 in "Needs Triage" status.
No action - properly labeled `internal` and tracked in CFSQL-1390
Analysis Report
Issue Review: cloudflare/workers-sdk#10089
Summary
D1 SQL error messages show unhelpful offsets instead of line numbers, and don't display the problematic code.
Findings
- Created: 2025-07-27
- Updated: 2025-10-06
- Version: wrangler 4.26.0 → 4.60.0 (current)
- Component: D1 (wrangler)
- Labels: bug, internal, d1
- Comments: 3
Key Evidence
Issue has 4 complaints:
- Error shows offset instead of line number
- Offset is relative to expression, not file
- Incorrect code is not shown
- "Please report this to Cloudflare" prompt appears for SQL syntax errors
Point 4 addressed: PR #10769 (merged 2025-09-29) marks SQL errors as
UserErrorto disable the Sentry reporting promptPoints 1-3 still open: These require changes to SQLite error handling, likely at the Cloudflare Platform level
Internal tracking: Jira CFSQL-1390 created by Dario Piotrowicz on 2025-10-06
- Status: "Needs Triage" (To Do)
- Priority: P4 Normal
- No work has begun on this issue
internallabel indicates this requires Cloudflare Platform team support, not just workers-sdk changes
Recommendation
Status: KEEP OPEN
Reasoning: The core issue (unhelpful SQLite error messages) has not been fixed. Only the secondary complaint about the "report to Cloudflare" prompt was addressed by PR #10769. The remaining issues (1-3) are tracked in internal Jira CFSQL-1390 but are still in "Needs Triage" status with no work started. The internal label is appropriate as this requires D1/SQLite platform-level changes.
Action: No action needed. Issue is properly labeled and tracked internally. Keep open until CFSQL-1390 is resolved.
Notes & Feedback (0)
No notes yet.