You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, just like everyone else, I sporadically get the error: Unexpected token < in JSON at position 0 when trying to compile a Gatsby site.
I understand the usual response is "there's an error somewhere in your code" as the site is returning HTML instead of JSON.
Is there any way at all to actually read what's being returned? Nearly all responses say "just find out what's wrong", but surely there's a means of reading the error somewhere, rather than digging around in the dark until something works?
Seeing how common this error is, I'd assume there'd be some sort of reference to it somewhere.
This discussion was converted from issue #27959 on November 11, 2020 07:37.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, just like everyone else, I sporadically get the error:
Unexpected token < in JSON at position 0
when trying to compile a Gatsby site.I understand the usual response is "there's an error somewhere in your code" as the site is returning HTML instead of JSON.
Is there any way at all to actually read what's being returned? Nearly all responses say "just find out what's wrong", but surely there's a means of reading the error somewhere, rather than digging around in the dark until something works?
Seeing how common this error is, I'd assume there'd be some sort of reference to it somewhere.
Beta Was this translation helpful? Give feedback.
All reactions