DEV Community

Discussion on: Error when I delete a user: Unhandled Rejection (TypeError): Cannot read property 'error' of undefined

Collapse
 
hnicolas profile image
Nicolas Hervé

I think your problem is that your api call returns an empty body and response.json() fails on responses with an empty body.