Express

External API calls hang without timeout enforcement

warning
availabilityUpdated Feb 6, 2026(via Exa)
Technologies:
How to detect:

External API calls without timeout enforcement can hang indefinitely when remote services are unresponsive, blocking event loop and degrading service

Recommended action:

Use AbortController with setTimeout to enforce timeouts (e.g., 5000ms). Pass controller.signal to fetch. In error handler, check err.name === 'AbortError' and respond with 504 Gateway Timeout status