Closed fnoopv closed 8 months ago
Yes! I did some test, actually same:
fetch('https://github.com')
.then((res) => res.text())
.catch((e) => {
console.log('fetch:', e instanceof TypeError, e);
});
const http = xior.create({});
http.get('https://github.com').catch((e) => {
console.log('xior:', e instanceof TypeError, e);
});
ok, thanks
A fetch() promise will reject with a TypeError when a network error is encountered or CORS is misconfigured on the server-side, other situations are not. is this library the same?