-
Notifications
You must be signed in to change notification settings - Fork 783
SyntaxError: Unexpected end of JSON input with React Native #599
Comments
Happening on iOS too for me :/ Note: this error seems to disappear when running the app's JavaScript remotely in a browser. Going to investigate further. |
Thanks for reporting the issue @lyquocnam. Could you provide more information on when it happens, or maybe even provide a reproduction? |
@helfer it happen when try to load data from graphql server |
It happened to me too. I had to recheck my code and to pay much attention to the components names used in my application. Instead of writing the correct name StackNavigator in |
This is most likely a network error or as @tudor2it noted, a bundler issue. Closing for now as we don't parse JSON in react-apollo at all |
I get this error as well. I am able to dismiss it (locally) and everything has loaded correctly |
@stantoncbradley |
@reactionic127 I forget why this was happening. I do know we get this error when we receive html back, which we get from our server when we aren't authenticated |
### is it any News about This ISSUE ?? i have same Error , to || ReactNative => 0.55.4 || this error happen when i want get Query
can any body help me !? plz i think Maybe , when i am sign out from my application , this happening i use Apollo for Authentication with Apollo Like this const httpLink = new HttpLink({ uri: 'http://2.179.166.193:8000/basalam_api/api/user' });
|
i also have this ISSUE in Mutation
and error.graphQLErrors == [ ] ( return empty Array ) |
@helfer hi my friend , i am follow you in Medium and i know you are Perfect 👍 👍 🥇 , please HELP ME , tomorrow i must release my APP , and i am relay and trust APOLLO |
running to this issue again on android (haven't tried ios yet) after upgrading to react-native 0.56. Everything was working fine before, and no other related changes were made: "apollo-cache-inmemory": "1.1.10", still digging... |
I had this issue. I was using apollo-link-http to create a HttpLink, and because I also had a CORS issue, I set So check your fetchOptions and fetch library maybe |
I try to implement apollo client by using graphql client.query({ What is wrong in this query. I' ve got error Unexpected end of JSON input. |
here my code
and error Stack
More info

this only happen on android, ios this not happen
MY PROJECT
https://github.com/lyquocnam/react-native-demo
The text was updated successfully, but these errors were encountered: