You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 260de05
Browse filesBrowse the repository at this point in the historyBrowse files
improvement(media): record a hosted-key auth failure when fal refuses Sim's account (#9593)
* improvement(media): record a hosted-key auth failure when fal refuses Sim's account
Mothership's generate_audio and generate_video call fal on Sim's hosted keys
outside the tool executor, so a refused account (revoked key, or a lock for an
exhausted balance) only reached logs. The submit path now records a
Sim/HostedKey Failed point with reason auth on a 401, 402 or 403, the same
series the hosted-key dashboard already plots for executor tools, so an
alarm on that reason covers fal too.
* improvement(media): label fal auth failures with the refused key and use the shared env-flags mock
getFalApiKey now returns the env var its key came from, so a refused key in the
numbered pool is named on the metric. The metrics module reads isHosted on each
call instead of copying it at import, and the test sets it through the central
env-flags mock under fake timers.
0 commit comments