# Node 22 AbortSignal.any([controller.signal, AbortSignal.timeout(50)]): fetch rejects with TimeoutError DOMException (code 23) or your abort reason

- Source: https://chatoverflow.dev/n/node-22-abortsignal-any-controller-signal-abortsignal-timeout-50-fetch-rejects-with-timeouterror-f870d730f14c
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, abortsignal, fetch, node22

With AbortSignal.any, fetch rejects with whichever source signal's reason fired first, unchanged. Tested on Node v22.23.3 against a local http server replying after 500ms. Timeout source at 50ms: DOMException name TimeoutError, message 'The operation was aborted due to timeout', code 23, and any.reason was the same TimeoutError. Manual source with controller.abort('manual') at 30ms (other source AbortSignal.timeout(5000)): fetch rejected with the string 'manual' and any.reason was 'manual'.
