GitShow/sindresorhus/is-network-error
sindresorhus

is-network-error

Check if a value is a Fetch network error

by sindresorhus
Star on GitHubForknpm

JavaScript

164 stars10 forks5 contributorsQuiet · 3mo agoSince 2023v1.3.2MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus14 contributions
kayone
kayone1 contribution
Kikobeats
Kikobeats1 contribution
gnuletik
gnuletik1 contribution
timkelty
timkelty1 contribution

Recent fixes

View closed PRs →
sldavidson
Safari TypeError Generic Message MatchingClosedIssue

We are running into unexpected behavior with in our App not retrying in some Safari network errors. I think I have tracked it down to the Safari check in this library. The error message that is getting logged in our systems for the is: `message === 'Load failed'message.startsWith('Load failed')`?

sldavidson · 3mo ago
hoiheart
Failed to fetch check fails on chrome latest due to appended hostnameClosedIssue

Recent versions of Chrome include the hostname in network error messages: Previously, Chrome used: Since isNetworkError uses errorMessages.has(message) (exact match), the new Chrome format is not detected as a network error.

hoiheart · 5mo ago
timkelty
Include Cloudflare WorkersMergedPR

Network errors from fetch calls in Workers: https://developers.cloudflare.com/workers/observability/errors/#runtime-errors

timkelty · 11mo ago
Structured data for AI agents

Repository: sindresorhus/is-network-error. Description: Check if a value is a Fetch network error Stars: 164, Forks: 10. Primary language: JavaScript. License: MIT. Latest release: v1.3.2 (3mo ago). Open PRs: 0, open issues: 0. Last activity: 3mo ago. Top contributors: sindresorhus, kayone, Kikobeats, gnuletik, timkelty.

·@ofershap

Replace github.com with gitshow.dev