-
Notifications
You must be signed in to change notification settings - Fork 36
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
keep getting error: Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 #3
Comments
you have to solved the first error first, which is undefined. i encountered the same issue though not to be exact. |
@mastersoftwaremedia You probably have single quotes inside your options object in fetch method (in saveGame action in actions.js) |
Thank you for the replies. I did look for the single quotes as you suggested, but found none. Does it work for you? |
in chrome, go to redux tools and see what's the output, as mentioned by @andrei-sheina, the error might come from your actions.js, and you should check on your games reducers too. |
I get same issue. were you able to solve it? |
I have a same issue. how to solve it? |
MongoDB syntax has changed since this video. Update your
|
I'm getting same since i made a change to my service worker script |
Hello, I'm also getting the same error of "Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0" Here is my code... getWeather = async (e) => { |
The error comes when there is an error in the javascript code, I faced it once, my code was live this const mymap = L.map('mine').setView([-26.2042,28.0473], 5);
as you can see on the URL there are a double semi-colon, once I fixed it I solved it |
can you please share the complete page of server.js |
Hi all,
I am having a trouble with this "Unexpected token < in JSON at position 0." I tried to utilize all the help I can get from online and still no luck. Anyone has an idea what is going on with this? I followed the code as it is and I am getting error. I am running crud at 3000 and backend at 8080 and they are both running without crushing on each other. I even checked the backend part and it is working fine. Since error occurred, the redux devtool extension or the state of fetching games is not in proper session. Thank you in advance!
The text was updated successfully, but these errors were encountered: