Repository navigation
fix(aviation): route NOTAM through Railway relay to fix timeout - #599
Merged
Merged
Conversation
Root cause: ICAO NOTAM API times out from Vercel edge (>10s). AviationStack alerts indistinguishable from simulation in logs. Changes: - Add /notam proxy endpoint to Railway relay (25s timeout, 30min cache) - Route fetchNotamClosures through relay when WS_RELAY_URL is set - Fall back to direct ICAO call (20s timeout) when no relay - Log cache hits with real vs simulated alert counts - Send all MENA airports in single NOTAM request (was batched by 20) Requires: ICAO_API_KEY env var on Railway relay
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
koala73
added a commit
that referenced
this pull request
Mar 1, 2026
Root cause: ICAO NOTAM API times out from Vercel edge (>10s). AviationStack alerts indistinguishable from simulation in logs. Changes: - Add /notam proxy endpoint to Railway relay (25s timeout, 30min cache) - Route fetchNotamClosures through relay when WS_RELAY_URL is set - Fall back to direct ICAO call (20s timeout) when no relay - Log cache hits with real vs simulated alert counts - Send all MENA airports in single NOTAM request (was batched by 20) Requires: ICAO_API_KEY env var on Railway relay
matthewvecchione1-ops
pushed a commit
to matthewvecchione1-ops/worldmonitor
that referenced
this pull request
Mar 4, 2026
…a73#599) Root cause: ICAO NOTAM API times out from Vercel edge (>10s). AviationStack alerts indistinguishable from simulation in logs. Changes: - Add /notam proxy endpoint to Railway relay (25s timeout, 30min cache) - Route fetchNotamClosures through relay when WS_RELAY_URL is set - Fall back to direct ICAO call (20s timeout) when no relay - Log cache hits with real vs simulated alert counts - Send all MENA airports in single NOTAM request (was batched by 20) Requires: ICAO_API_KEY env var on Railway relay
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NOTAM batch 1: The operation was aborted due to timeout/notamproxy endpoint to Railway relay (25s timeout, 30min local cache)fetchNotamClosuresnow routes through relay whenWS_RELAY_URLis set, falls back to direct call (20s timeout)Deployment steps
ICAO_API_KEYenv var to Railway relay (same value as Vercel)[Relay] NOTAM:entriesAlso check
AVIATIONSTACK_APIenv var set on Vercel? If not, all intl alerts are simulation (random)Test plan
npx tsc --noEmitpassesnode -c scripts/ais-relay.cjspassesNOTAM: fetching via relay[Relay] NOTAM: