Add a console.log(data)
in front of the JSON.parse(data)
call. The JSON in data
seems to be broken so it can't parse it.
↧
Error: Uncaught (in promise): SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data
↧