[b]"Does Fetch API throw errors when a request fails?"[/b] Alternatively: [b]"How does Fetch API throw errors, and

18 Replies, 606 Views

OP here—thanks for all the replies! Definitely confirms what I was seeing.

Gonna try wrapping fetch in a helper like some of you suggested. Also, `axios` and `ky` look interesting—might give those a shot too.

Still weird that fetch doesn’t throw for HTTP errors by default, but hey, now I know!

(And yeah, typing this on my phone again, so forgive any typos lol).

Messages In This Thread



Users browsing this thread: 1 Guest(s)