SnapPromptAsk about capture Esc close
Region Window Full screen Pixelate Blur Auto-redact Select text CtrlShift1
PS C:\dev\invoice-sync> pnpm dev> invoice-sync@0.9.3 dev> tsx watch --env-file=.env src/index.ts14:02:07 ready http://localhost:8787 pid 1824414:02:19 POST /api/invoices/sync 500 412 ms14:02:19 ERROR TypeError: Cannot read properties of null (reading 'total') at toInvoiceRow (src/sync/map.ts:42:31) at Array.map (<anonymous>) at syncInvoices (src/sync/index.ts:118:22) at async POST (src/routes/invoices.ts:27:5)14:02:19 DEBUG request context { customer: { id: "cus_9182", name: "Lena Holm", email: "lena.holm@example.com", phone: "+46 70 412 88 31" }, card: "4242 4242 4242 4242", ip: "203.0.113.24", authorization: "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c3JfOTE4MiIsInNjb3BlIjoiaW52b2ljZXMifQ.k3Xq9vR2mTw8", "x-api-key": "sk-live-7Hq2vR9xK4mT8pW1nB6cZ3fL",}14:02:19 DEBUG upstream GET /v2/invoices?status=open -> 200, 3 items [{ id: "in_0191", lines: { total: 1840 } }, { id: "in_0193", lines: null }, ...]14:02:20 WARN sync stopped after 1 of 3 invoices, retrying in 60 sPS C:\dev\invoice-sync>
Original PS C:\dev\invoice-sync> pnpm dev> invoice-sync@0.9.3 dev> tsx watch --env-file=.env src/index.ts14:02:07 ready http://localhost:8787 pid 1824414:02:19 POST /api/invoices/sync 500 412 ms14:02:19 ERROR TypeError: Cannot read properties of null (reading 'total') at toInvoiceRow (src/sync/map.ts:42:31) at Array.map (<anonymous>) at syncInvoices (src/sync/index.ts:118:22) at async POST (src/routes/invoices.ts:27:5)14:02:19 DEBUG request context { customer: { id: "cus_9182", name: "Lena Holm", email: "lena.holm@example.com", phone: "+46 70 412 88 31" }, card: "4242 4242 4242 4242", ip: "203.0.113.24", authorization: "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c3JfOTE4MiIsInNjb3BlIjoiaW52b2ljZXMifQ.k3Xq9vR2mTw8", "x-api-key": "sk-live-7Hq2vR9xK4mT8pW1nB6cZ3fL",}14:02:19 DEBUG upstream GET /v2/invoices?status=open -> 200, 3 items [{ id: "in_0191", lines: { total: 1840 } }, { id: "in_0193", lines: null }, ...]14:02:20 WARN sync stopped after 1 of 3 invoices, retrying in 60 sPS C:\dev\invoice-sync>
Redacted · sent Pages: 2/10 Add capture Hidden areas are removed from the image before it is sent.
Quick answer Claude Code Safe mode
Why does the sync crash on this invoice?
capture-1.png capture-2.pngClaude is answering…
in_0193 comes back with lines: null, so toInvoiceRow throws when it reads lines.total at map.ts:42.
The upstream API returns drafts without line items. Skip them before mapping:
const rows = invoices
.filter((inv) => inv.lines !== null)
.map(toInvoiceRow); Separately, the DEBUG log prints the customer's email and your API key. Keep it behind a flag so it never reaches shared logs.
Only your capture and question are sent
Ask a follow-up…Enter
C:\dev\invoice-sync Ask first
Copy Continue in Claude Code
Claude Code session · Starting
Nov 2026, ongoing · Sole developer and seller
SnapPrompt
Screen capture that asks Claude about what you see, with redaction done on your machine
- Platforms
- Windows, macOS, Linux
- Price
- $19 one-time + tax, up to 3 computers
- AI providers
- Claude Code, Codex CLI, Copilot CLI, Ollama, ChatGPT on macOS