How can i over this HttpErrorResponse error: SyntaxError: Unexpected number in JSON at position 1 at JSON.parse

515 views
Skip to first unread message

Kfir Tevet

unread,
May 20, 2019, 2:01:35 AM5/20/19
to Angular and AngularJS discussion

:Hey I'm a beginner developer so excuse me for this question
When I try to pull Jesson I get this error
SyntaxError: Unexpected number in JSON at position 1 at JSON.parse
 "Unexpected number in JSON at position 1":message
 "SyntaxError: Unexpected number in JSON at position 1↵ at JSON.parse :stack
_proto__: Error text: "--------------STREAM_DELIMITER↵Content-Type:appli

?How can i over this

Sander Elias

unread,
May 20, 2019, 2:46:27 AM5/20/19
to Angular and AngularJS discussion
Hi Kfir,

Your server is probably sending out invalid JSON. Fix this at the server level.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages