Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

JSON value '<null>' of type NSNull cannot be converted to NSString #1441

Closed
mauscoelho opened this issue Dec 20, 2017 · 4 comments
Closed

JSON value '<null>' of type NSNull cannot be converted to NSString #1441

mauscoelho opened this issue Dec 20, 2017 · 4 comments

Comments

@mauscoelho
Copy link

Intended outcome:
I am requesting a simple query on a graphcool server. I'm not sure that the problem is react-apollo, but always that is requested something with react-apollo de red screen is showed.

The query is performed with success, and everything works normally, but, this red screen is always showed

Actual outcome:

screen shot 2017-12-20 at 15 07 46

How to reproduce the issue:

export const ALL_CUSTOMERS_QUERY = gql`
  query AllCustomersQuery {
    allCustomers {
      id
      name
    }
  }
`;
graphql(ALL_CUSTOMERS_QUERY, {
    name: 'allCustomersQuery',
  })

Version

  • apollo-client@^2.1.0
  • react-apollo@^2.0.1
  • react-native@0.51.0
@rosskevin
Copy link
Contributor

Unfortunately, this is not something that we can reproduce in this repository with the information you provided. I encourage you to look to our slack channel or stackoverflow for some help. If you find a bug, a breaking test case as a PR is very helpful.

@mauscoelho
Copy link
Author

I think that I configured apollo-link-error and apollo-link-http wrong. I removed this packages and did a simple setup and it worked.
Thanks for response

@chrise86
Copy link

Sorry to drag up and old issue but @mauscoelho can you shed some light on what you think the issue was? Facing the same issue now.

@mauscoelho
Copy link
Author

Hey @chrise86, it was some wrong incompatible version. Try to delete all your npm_modules, cache. Update all your Apollo libs and try clean and rebuild :)

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

No branches or pull requests

3 participants