I am working on an angular2 project. I am stuck with these errors. The error occured when I tried to send the JSON objects to the backend. It may be due the parsing of JSON obje
Read the call stack closely; the crash is on this line:
.map(res=> res.json());
The JSON parser is failing to understand the response from the server. See if you can figure out what response the server (the POST to http://localhost:3000/api/users
) is sending back. The response supposedly starts with 'U'
, which cannot be valid JSON.