@maschinenlesbar.org/reisewarnungen-cli
    Preparing search index...

    Variable baseUrlProblemConst

    baseUrlProblem: Problem = ...

    A base URL: an absolute http:/https: URL with no query or fragment, spelled http(s):// and the host (WHATWG repairs http:host, http:/host and http:///host silently into another reading), with no backslash (WHATWG ends an http(s) host at one). Request paths are appended to the base URL as a string, so a ? or # in it would swallow every path (http://h/?x=1 requests /?x=1/opendata/..., http://h/#f requests /). A malformed value (notaurl, "", http://) fails the parse. A % in the user name or password must start a valid escape (%25 for a literal one): the userinfo is decoded for the Authorization header, and Node failed at request time ("URI malformed") as a network error. A base that ends in the API's own path (/opendata/travelwarning, which the client adds) is refused: it doubled the path. Surrounding whitespace (U+00A0 included) and control characters are rejected: new URL() trims or drops them silently, so the value would not read as it was typed. None of the reasons quotes the value.