Whose Error Is It?
Node.js printed this
SyntaxError: Unexpected token < in JSON at position 0
What it meansJSON.parse received text starting with a < character, which means the response was HTML, such as an error page, rather than JSON.
The first thing to checkCheck the request URL and the raw response in the network tab; a wrong path, a 404 page, or a login redirect returning HTML is the usual cause.
The walrus saysYou asked for JSON and got an HTML error page.