Troubleshooting
Local: server will not start
- Node version — match
.nvmrc (build/scripts/check-node.js enforces).
- Yarn only — npm triggers
force-yarn failure.
- Port in use — another
yarn dev or process on 3001 — stop or change port in dev server config if your branch supports it.
Local: 404 or wrong handler
?debugga=route,config — confirm matched route and merged config.
- Site prefix — include
fn/ (etc.) in the path.
- Wrong env —
yarn dev:stage vs yarn dev changes upstream data; ?env= overrides fetches.
Local: upstream errors / empty payloads
?debugga=source — inspect raw Spark / Brightcove / other responses.
- Identity —
?debugga=setup:identity for env and URLs.
- Secrets — some endpoints require AWS or partner secrets only present in deployed envs.
Stale content at CDN
- Verify route
caching policy — see Caching deep dive.
- Invalidate CDN only when policy change is insufficient — coordinate with infra (invalidation cost).
Build failures
yarn lint — fix Biome issues.
- TypeScript / webpack — read first error in
yarn build output; often a bad import or missing file in src/.
Deploy failures
- Terraform — check GitHub Actions logs for
deploy.sh / terraform apply.
- State lock — DynamoDB lock contention — retry after other apply finishes.
Getting help
- Slack channels per team norm (e.g. #moxie-dev mentioned in legacy setup docs).
- GitHub
foxnews/fn-moxie-api issues / PRs with debugga excerpts (redact secrets).