External API calls hang without timeout enforcement
warningavailabilityUpdated Feb 6, 2026(via Exa)
Sources
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