score:11

unexpected token < .. means json parsing failed because you somehow get html while expecting json. please check the response of http://localhost:5000/items.json is really valid json.

an easy way to check would be to change the code to res.text() and log the result to the console.


Related Query

More Query from same tag