DeepSeek models poll fails whole when the pricing page parses 0 rows #367
Error#
ingest_failed (providerId: deepseek, job: models-poll):
deepseek pricing page: parsed 0 model rows
PostHog, last 7 days (hourly buckets):
| hour (UTC) | count |
|---|---|
| 2026-10-19 15:00 | 1 |
| 2026-10-19 16:00 | 4 |
| 2026-10-19 17:00 | 4 |
| 2026-10-19 18:00 | 2 |
| 2026-10-20 12:00 | 1 |
| 2026-10-20 13:00 | 4 |
First seen 2026-10-19 15:xx UTC, last seen 2026-10-20 13:33:35 UTC. From 12:45 UTC today every 15-minute poll failed. /v1/status shows DeepSeek lastPolledAt stuck at 12:33 UTC while every other provider polled at 13:3x.
What is happening#
adapters/deepseek.ts calls deepseekModelPricing(kv) directly, without tryDocs. When the pricing page parse comes back empty, assertParsed throws (correct, it fails closed), but the throw escapes listModels, so the whole DeepSeek poll fails: no listing diff, no reasoning or replay facts, no lastPolledAt. CLAUDE.md: "Wrap a docs load in tryDocs ... so its throw marks rows unavailable(...) and is reported as docsFailures instead of failing the provider's poll; the listing itself is never wrapped."
The page itself has not changed (last-modified: Mon, 19 Oct 2026 06:05:45 GMT, served from Tencent EdgeOne). Fetched from outside Cloudflare it parses to both rows (deepseek-flash, deepseek-v4-pro). The failures come and go, which points at the Worker sometimes receiving a different body from the CDN. The error says nothing about what the body was, so we can't tell which variant it got.
Fix#
- Load DeepSeek pricing through
tryDocs, markpricingunavailableon every row when it fails (stored cards are kept), and returndocsFailures. The failure stays visible asingest_failedand/v1/statusdocsFailing. - Put the body's byte length and
<title>in the zero-row error, so the next failure says what the Worker got.
tombeckenham closed this
Sign in to join this conversation.