when I open localhost:3000 in another browser it works perfectly fine. I think the issue is about the browser I used (firefox with a lot extension installed and setting tweaked)
Comment on SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
deadbeef79000@lemmy.nz 3 days ago
In my experience that is almost always the server returning an html error page.
Start with inspecting that actual response the first character is probably <
. The rest of it is likely to be a “not found” or “internal server error” (being the most common) page.
Then look at logs…
happeningtofry99158@lemmy.world 2 days ago
deadbeef79000@lemmy.nz 2 days ago
It could be the
accepts
header then… check if the request includesaccetps: application/json
happeningtofry99158@lemmy.world 2 days ago
Hi how do I check the response?
deadbeef79000@lemmy.nz 2 days ago
F12 should open the browser developer tools, one panel will be the network requests.