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

Unexpected token I in JSON at position 0 #32

Closed
pratikt-cuelogic opened this issue Mar 1, 2018 · 5 comments
Closed

Unexpected token I in JSON at position 0 #32

pratikt-cuelogic opened this issue Mar 1, 2018 · 5 comments

Comments

@pratikt-cuelogic
Copy link

not sure something went wrong at initial installation or not..
however im not able to move ahead with any query...
only following error is being display

Unexpected token I in JSON at position 0
playground http localhost 4000 _02
playground http localhost 4000 _01

fyI: I was following steps provided at https://www.howtographql.com/react-apollo/0-introduction/

@mhesham32
Copy link

+1

@danielsbird
Copy link

I had a similar error: Unexpected token < in JSON at position 0. I solved it by uninstalling yarn, reinstalling yarn, deleting the node_modules directory in this project, and then running yarn install.

I got the idea from this comment in the graphql-yoga repo but I don't yet understand why upgrading yarn fixed the error. Before upgrading yarn I was using yarn 1.1.0 and now I am using yarn 1.5.1.

@IevgenRagulin
Copy link

Getting error "Unexpected token P in JSON at position 0" (I'm using a different setup, but I'm also using Apollo and Graphql playground". Interestingly, when I copy curl from playground, the request executes successfully. It must be some Grapqhl Playground issue

@itscarlosrufo
Copy link
Contributor

Thanks @pratikt-cuelogic for opening this issue 😄. It should be working now. Closing this, please, feel free to re-open this issue if you cannot make it work!

@kumarabhirup
Copy link

kumarabhirup commented Feb 18, 2019

Hey, I'm still getting this error.
Network error: Unexpected token N in JSON at position 0

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

6 participants