“SyntaxError: Unexpected token < in JSON at position 0”

前端 未结 30 2130
花落未央
花落未央 2020-11-22 04:39

In a React app component which handles Facebook-like content feeds, I am running into an error:

Feed.js:94 undefined \"parsererror\" \"SyntaxError: Un

30条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 05:23

    In my Case there was problem with "Bearer" in header ideally it should be "Bearer "(space after the end character) but in my case it was "Bearer" there was no space after the character. Hope it helps some one!

提交回复
热议问题