Skip to content
Source
Sign inSign up
TanStack/schemas

DeepSeek models poll fails whole when the pricing page parses 0 rows #367

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

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:001
2026-10-19 16:004
2026-10-19 17:004
2026-10-19 18:002
2026-10-20 12:001
2026-10-20 13:004

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

  1. Load DeepSeek pricing through tryDocs, mark pricing unavailable on every row when it fails (stored cards are kept), and return docsFailures. The failure stays visible as ingest_failed and /v1/status docsFailing.
  2. Put the body's byte length and <title> in the zero-row error, so the next failure says what the Worker got.
  1. tombeckenham closed this

Sign in to join this conversation.