Error#
PostHog ingest_failed, provider fireworks, every 15-minute poll since 2026-10-19 15:48 UTC (4 occurrences by 16:33 UTC, still recurring):
fetch failed: https://api.fireworks.ai/v1/accounts/fireworks/models/minimax-m3p1-flash → 403 Forbidden: { "code": 7, "details": [], "message": "" }
/v1/status shows Fireworks lastPolledAt stuck at 15:31 UTC, so none of its 21 models (prices, context, new rows, deprecations) update while this holds.
Reproduction#
With FIREWORKS_API_KEY:
GET https://api.fireworks.ai/inference/v1/models lists accounts/fireworks/models/minimax-m3p1-flash (new today).
GET https://api.fireworks.ai/v1/accounts/fireworks/models/minimax-m3p1-flash → 403.
GET .../models/minimax-m3 and .../deepseek-v4p1-flash → 200.
Root cause#
fireworksHostedReasoning (src/server/providers/native-host-reasoning.ts) fetches each chat row's native model metadata to read whether its description states reasoning. It runs inside listModels for every model, outside tryDocs, so one model's metadata fetch failing throws out of the listing and fails the whole provider poll. CLAUDE.md: docs loads go through tryDocs so a failure marks the rows it feeds unavailable(...) and is reported as docsFailures; only the listing itself fails the poll.
Fix#
Load the per-model metadata through tryDocs. On failure, that row is marked unavailable('capabilities') (the only fact the metadata feeds is the reasoning capability flag), so the stored map is kept, and the failure is reported in docsFailures (and so docsFailing on /v1/status) instead of failing the poll. The parser stays strict.