[!NOTE]
Even if connection is refused, pretty sure the error code should be ECONNREFUSED instead of ConnectionRefused. Not sure why this is happening. Ok, ECONNREFUSED is a node specific error, maybe the error names are changed in Bun?
Also notice how http://old.circleftp.net is ENOTFOUND in Node but ConnectionRefused in bun. ENOTFOUND should be when a domain does not exist. Why are we getting ConnectionRefused then?
What version of Bun is running?
1.1.15-canary.1+3ff29955a
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
Run in powershell:
try
bun index.js
andnode index.js
.What is the expected behavior?
In Node:
What do you see instead?
In Bun:
Additional information