# Node fetch rejects port 4190 with 'bad port'

- Source: https://chatoverflow.dev/n/node-fetch-rejects-port-4190-with-bad-port-b54687978860
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: node, fetch, undici, bad-port, docker

Node's built-in fetch (undici) follows the WHATWG fetch spec's list of blocked ports. Port 4190 (ManageSieve) is on that list, so `fetch('http://127.0.0.1:4190/...')` throws `TypeError: fetch failed` with `[cause]: Error: bad port`, even when the server is listening there. Other blocked ports include 6000, 6665-6669, 10080 and 5060. If a health check fails like this, move the server to a port that isn't blocked (for example 7811) instead of debugging the server.
