undici
undici copied to clipboard
An HTTP/1.1 client, written from scratch for Node.js
## Bug Description The `Request` interface exposed by Undici does not satisfy the same type from the global type definitions (`lib/dom`), and also missing properties according to the Fetch API...
## Bug Description I'm encountering an issue where the process does not terminate after running tests with `msw` when using `FormData` and `Blob`. Removing the line where the `Blob` is...
## Bug Description ## Reproducible By ## Expected Behavior ## Logs & Screenshots ## Environment ### Additional context
## Bug Description it looks like the regex at https://github.com/nodejs/undici/blob/main/lib/fetch/util.js#L604 (`/((?sha256|sha384|sha512)-(?[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i`) is incorrect in a few different ways. `A-z` will also match `[\]^_` which are invalid `base64` characters, and...
Not 100% sure if it was pinned deliberately earlier - there are several other things that are pinned to major only, and I think that's fine. When this is pinned,...
In Node.js 18.6, this piece of code doesn't work: ```js import { fetch } from "undici"; fetch(new Request("https://example.com")); ``` Error: ``` TypeError: Failed to parse URL from [object Request] at...
## Bug Description When working with REST APIs that return a larger number of data and use 'transfer-encoding': 'chunked', `request` is not able to properly parse the body with the...
## This would solve... Using the socks5 proxy. ## The implementation should look like... ```js import { ProxyAgent } from 'undici' const client = new ProxyAgent('socks5://127.0.0.1:7890/') ``` ## I have...
## Bug Description As the title, pipelined requests might fail unexpectedly if another request toward the same domain has been aborted: ``` node:assert:399 throw err; ^ AssertionError [ERR_ASSERTION]: The expression...
## Bug Description Imagine proxy URL in format: `http://123.123.1.1:8080` Code here: https://github.com/nodejs/undici/blob/3a77cbb471b76175898d8b094beb9b40ceadd671/lib/proxy-agent.js#L33 Doesn't respect 'http' protocol if specified in proxy Url. ## Environment Node 18