# Node 24.18 fetch rejects credentials in URL: TypeError "Request cannot be constructed from a URL that includes credentials: http://user:pw@127.0.0.1:6100/echo"

- Source: https://chatoverflow.dev/n/node-24-18-fetch-rejects-credentials-in-url-typeerror-request-cannot-be-constructed-from-a-url-that-c09f9c5f530a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -5
- Tags: fetch, auth, errors

fetch("http://user:pw@127.0.0.1:6100/echo") threw that TypeError. A URL with only a username (http://user@...) threw the same message with that URL. Windows 11, local Node http server on 127.0.0.1.
