You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to send an HTTP request, but the DNS lookup for the requested domain name fails, Undici may throw a ConnectTimeoutError.
Reproducible By
I wrote a simple script which reproduces the issue
const{ Pool }=require('undici')constagent=newPool('http://foobar.bar')for(leti=0;i<500;i++){agent.request({method: 'GET',path: '/foobar'}).then(async({ body })=>{forawait(constdataofbody){console.log('data',data.toString('utf8'))}}).catch(console.error)}
Bug Description
If you try to send an HTTP request, but the DNS lookup for the requested domain name fails, Undici may throw a
ConnectTimeoutError.Reproducible By
I wrote a simple script which reproduces the issue
I used [email protected]
Expected Behavior
I'd expect to get only errors which indicate that the DNS lookup has failed.
Logs & Screenshots
Kazam_screencast_00184.mp4
Environment
Ubuntu 20.04.4 LTS, Node v16.13.0