Skip to content

fix: silent drops, 200-on-failure, invalid-json 500, and backtest exi… - #569

Open
dripscodes wants to merge 1 commit into
Zenith-options:mainfrom
dripscodes:fix/issues-455-456-457-458
Open

dripscodes wants to merge 1 commit into
Zenith-options:mainfrom
dripscodes:fix/issues-455-456-457-458

Conversation

@dripscodes

Copy link
Copy Markdown
Contributor

…t code (#455 #456 #457 #458)

closes #455 csp-report: warn with shape/keys when normalizeReports returns [] for a non-null body; still return 204 so browsers do not retry
closes #456 runtime-config: implement the empty route; return 502 + JSON error body on upstream fetch failure or non-OK status; fall back to process.env when RUNTIME_CONFIG_URL is not set
closes #457 share: change invalid-JSON 400 error key to 'invalid_json' per the error-handling spec
closes #458 vault-backtest: wrap writeFileSync in try/catch; print error and exit 1 on failure; only print success message after a confirmed write

Summary

Changes

Testing

Checklist

  • Tests pass locally
  • No new warnings/lints introduced

…t code (Zenith-options#455 Zenith-options#456 Zenith-options#457 Zenith-options#458)

- Zenith-options#455 csp-report: warn with shape/keys when normalizeReports returns []
  for a non-null body; still return 204 so browsers do not retry
- Zenith-options#456 runtime-config: implement the empty route; return 502 + JSON error
  body on upstream fetch failure or non-OK status; fall back to process.env
  when RUNTIME_CONFIG_URL is not set
- Zenith-options#457 share: change invalid-JSON 400 error key to 'invalid_json' per the
  error-handling spec
- Zenith-options#458 vault-backtest: wrap writeFileSync in try/catch; print error and
  exit 1 on failure; only print success message after a confirmed write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants