DEV Community

Discussion on: Error Handling With Fetch

Collapse
vercetti11 profile image
Octavio Vercetti

Check res.ok field in the frist then(). When you parse it with .json() you strip it out of the ok field.