DEV Community

Discussion on: "Synchronous" fetch with async/await

Collapse
 
johnpaulada profile image
John Paul Ada

Hey! When I get this error, it's usually because the result I get isn't in JSON. Try await response.text() and check the response.