Skip to content
Source
Sign inSign up
TanStack/schemas

OpenAI models poll fails whole when developers.openai.com docs return 403 #371

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

Observed (PostHog ingest_failed, job models-poll, provider openai)

first seenlast seencounterror
2026-10-20 16:00:19 UTC2026-10-20 16:30:19 UTC3 (every poll since 16:00)fetch failed: https://developers.openai.com/api/docs/models.md → 403 Forbidden: Forbidden Forbidden hkg1::…

/v1/status shows openai.lastPolledAt stuck at 15:45 UTC and docsFailing: null: the failure is not reported as a docs failure, it fails the whole provider poll, so no OpenAI row (prices, listing, deprecations) has been refreshed since.

The 403 itself comes from the docs host's edge (hkg1) and lines up with the Anthropic 403 / Gemini location failures in #356 (the cron running in an unsupported colo). From here the same URL returns 200. That part is #356.

Bug in our code

openaiModelFacts (src/server/providers/openai-model-docs.ts) loads the models index, the pricing page, every model page and the realtime effort guide with bare cachedDocs, outside tryDocs. Only the three GPT-5 guides go through tryDocs. CLAUDE.md requires docs loads to go through tryDocs so a docs failure marks rows unavailable(...) and is reported as docsFailures, while the listing (GET /v1/models) still polls. Fireworks (#359) and DeepSeek (#368) had the same defect.

Fix

Load each of those docs sources through tryDocs. Rows whose source failed get absent: 'unavailable' for the facts that source feeds, so stored values are kept, not nulled. The listing stays unwrapped.

  1. tombeckenham closed this

Sign in to join this conversation.