On workerd 1.20260828.1:
try {
await fetch("http://127.0.0.1:1/");
} catch (error) {
console.log(error.name, error instanceof TypeError, error.message);
// Error false Network connection lost.
}
The Fetch standard requires network errors to reject with a TypeError.
workerd currently maps all DISCONNECTED exceptions to a plain Error here.
Related:
On workerd
1.20260828.1:The Fetch standard requires network errors to reject with a
TypeError.workerd currently maps all
DISCONNECTEDexceptions to a plainErrorhere.Related:
..