-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undici doesn't work with npm specifiers #16710
Comments
I found 3 issues for this:
|
Seems like there's another problem: #15427 (comment) |
Any progress on Deno.TcpConn.unref / is there something blocking it? |
No progress, no one has picked it up yet. PRs are most welcome! |
FYI I'm working on the ref/unref functionality in #17170 |
This commit adds "Deno.Conn.ref()" and "Deno.Conn.unref()" methods. These methods can be used to make connection block or not block the event loop from finishing. Refing/unrefing only influences "read" operations - ie. scheduling writes to a connection _do_ keep event loop alive. Required for #16710
@kt3k could you take over this issue now that unref API for connection is implemented? |
Sure! |
This commit adds "Deno.Conn.ref()" and "Deno.Conn.unref()" methods. These methods can be used to make connection block or not block the event loop from finishing. Refing/unrefing only influences "read" operations - ie. scheduling writes to a connection _do_ keep event loop alive. Required for #16710
@kt3k as of 1.29.2, this seems to be completely functional now? Is there something that is still pending, or should I close this issue? The example in the original post works now. Thanks! |
@khrj It still seems to time out for me, both on 1.29.2 and on latest canary. import { request } from 'npm:undici';
const res = await request('https://jsonplaceholder.typicode.com/todos/1');
console.log(res.statusCode); |
@Jakob5358 Is |
Yes but it now works in the latest version thanks y'all |
Undici returns a ConnectTimeoutError when attempting any request.
Many npm modules depend on undici, node's fetch api implementation used as a module.
Reproducible example:
fails with
Example of module broken: #16684
The text was updated successfully, but these errors were encountered: