Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 #76

Open
DefCon-018 opened this issue Apr 14, 2022 · 3 comments

Comments

@DefCon-018
Copy link

No description provided.

@adamelfstrom
Copy link

This happens when you receive a document that is not a json file, for example; if no meta.json file was found, and your react app's response is to send a 404-page to any request to a resource that doesn't exist, you would encounter this.

I personally encountered this only when doing local debugging on localhost, so my solution was add a meta.json file with an empty version string in the /public directory. This file will be overwritten by the prebuild command anyway, so it doesn't matter that is empty.

@sbimochan
Copy link

I caught this on Sentry. Even though it received meta.json file it is still giving this error.

@tejaswitandel
Copy link

I caught this error on sentry as well as hotjar. Given solution is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants