mohammed fajiran
mohammed fajiran

Reputation: 29

React: Uncaught SyntaxError: Unexpected token < in JSON at position 0

Unexpected token < in JSON at position 0

  • :null in parse
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:37:11 in tryCallOne
  • node_modules\react-native\node_modules\promise\setimmediate\core.js:123:14 in setImmediate$argument_0
  • ... 8 more stack frames from framework internals

enter image description here

I am using a one page update records, but when I disable that the error still shows. I thought it might had something to do with the reviews on the update page (as I moved the reviews out of the tabs), but undoing that change didn't fix the error on the update pages.

Upvotes: 0

Views: 1666

Answers (1)

Gaby
Gaby

Reputation: 17

There is probably an error with data you try to pass . You are expecting a Json but the '<' token error shows that your data is not a json object . Check your json again .

Upvotes: 1

Related Questions