Monday 27 April 2020

SyntaxError: Unexpected end of JSON input at JSON.parse ()

Hi, I'm making a web app that uses the api from a game and I'm currently trying to diplay general information about the searched user. When I go to the url that I get the user data from, it's clearly a JSON, so why do I get this error when I try to call JSON.parse(data)? 'data' contains the user information. I tried searching for solutions and couldn't find anything that could help me...

Submitted April 27, 2020 at 10:11PM by McTex_reddit

No comments:

Post a Comment