Skip to content

fix(mcp): include both source failure reasons in get_airspace error - #6097

Open
tagadearpit wants to merge 4 commits into
koala73:mainfrom
tagadearpit:fix/get-airspace-both-failed-reasons-6085
Open

fix(mcp): include both source failure reasons in get_airspace error#6097
tagadearpit wants to merge 4 commits into
koala73:mainfrom
tagadearpit:fix/get-airspace-both-failed-reasons-6085

Conversation

@tagadearpit

Copy link
Copy Markdown
Contributor

When civilian and military upstreams both fail, the thrown error discarded civResult.reason and milResult.reason. Sentry (WORLDMONITOR-WV) therefore could not distinguish timeouts from HTTP errors or auth failures.

Surface each side's rejection (TimeoutError/AbortError, HTTP status, or Error message) in the error text so correlated shared-host outages are diagnosable. BillingDenialError is still rethrown ahead of this branch.

Fixes #6085

Signed-off-by: tagadearpit

Summary

Type of change

  • Bug fix
  • New feature
  • New data source / feed
  • New map layer
  • Refactor / code cleanup
  • Documentation
  • CI / Build / Infrastructure

Affected areas

  • Map / Globe
  • News panels / RSS feeds
  • AI Insights / World Brief
  • Market Radar / Crypto
  • Desktop app (Tauri)
  • API endpoints (/api/*)
  • Config / Settings
  • Other:

Checklist

  • Tested on worldmonitor.app variant
  • Tested on tech.worldmonitor.app variant (if applicable)
  • New RSS feed domains added to api/rss-proxy.js allowlist (if adding feeds)
  • No API keys or secrets committed
  • TypeScript compiles without errors (npm run typecheck)

Documentation Alignment Checklist

  • Claim ledger attached or linked
  • All required Audit Council role signoffs attached
  • Generated docs regenerated from proto where applicable
  • Fixture-backed examples recomputed
  • Redis writers/readers enumerated for every documented key

Screenshots

When civilian and military upstreams both fail, the thrown error discarded
civResult.reason and milResult.reason. Sentry (WORLDMONITOR-WV) therefore
could not distinguish timeouts from HTTP errors or auth failures.

Surface each side's rejection (TimeoutError/AbortError, HTTP status, or
Error message) in the error text so correlated shared-host outages are
diagnosable. BillingDenialError is still rethrown ahead of this branch.

Fixes koala73#6085

Signed-off-by: tagadearpit
@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

@tagadearpit is attempting to deploy a commit to the World Monitor Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the trust:safe Brin: contributor trust score safe label Aug 3, 2026
When civilian and military upstreams both fail, the thrown error discarded
civResult.reason and milResult.reason. Sentry (WORLDMONITOR-WV) therefore
could not distinguish timeouts from HTTP errors or auth failures.

Surface each side's rejection (TimeoutError/AbortError, HTTP status, or
Error message) in the error text so correlated shared-host outages are
diagnosable. BillingDenialError is still rethrown ahead of this branch.

Fixes koala73#6085

Signed-off-by: tagadearpit
Extract a pure summarizer and wire it into get_airspace so Sentry
(WORLDMONITOR-WV) can distinguish TimeoutError, HTTP status, and other
failures when both civilian and military upstreams fail.

Fixes koala73#6085

Signed-off-by: tagadearpit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

trust:safe Brin: contributor trust score safe

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(mcp): get_airspace both-sources-failed error discards both rejection reasons (WORLDMONITOR-WV)

1 participant