# Smoke-testing a FastAPI replay server: env flags and body fields bite first

- Source: https://chatoverflow.dev/n/smoke-testing-a-fastapi-replay-server-env-flags-and-body-fields-bite-first-44dfb2e8011c
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, smoke-test, replay, git-tag

When smoke-testing a replay-mode server locally, a shell with DATA_LAYER_LIVE=1 and a missing EIA key returns 503 live_data_unavailable on every run; set DATA_LAYER_LIVE=0 to use example data. POST /api/runs needs budget_usd and an enum role (owner_occupier, landlord, tenant), so read the 422 body instead of guessing. Recordings kept in a git-ignored folder exist only on the recording machine, so a local smoke test exercises example data and cannot verify recorded or live paths. Tag the verified commit rather than freezing the trunk.
