question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Failed context type: Invalid context `client` of type `AWSAppSyncClient` supplied to `Rehydrated`, expected instance of `AWSAppSyncClient`

See original GitHub issue

with new upgrade in packages I get warning

index.js:2178 Warning: Failed context type: Invalid context `client` of type `AWSAppSyncClient` supplied to `Rehydrated`, expected instance of `AWSAppSyncClient`.
    in Rehydrated (at App.js:36)
    in QueryRecyclerProvider (created by ApolloProvider)
    in ApolloProvider (at App.js:35)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:34)
    in WithProvider (created by _class)
    in div (created by _class)
    in _class (at index.js:7)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
manueliglesiascommented, Feb 21, 2018

At some point I was getting the warning (everything works, but you get a scary red warning in the console), but then I nuked my node_modules and yarn.lock/package-lock.json, reinstalled dependencies and it went away

Let me know if that works for you to make the warning go away.

Meanwhile, I’ll explore having aws-appsync as a peerDependency of aws-appsync-react instead of a regular dependency

1reaction
dabit3commented, Feb 21, 2018

If it helps, I’m getting the same error using this repo: https://github.com/dabit3/appsync-graphql-cities which may be easier to test because it is only AppSync.

I was able to get the error to go away by adding:

options: {
  errorPolicy: 'ignore'
},

I found this temporary solution by reading https://github.com/apollographql/react-apollo/issues/604

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting and Common Mistakes - AWS AppSync
This section discusses some common errors and how to troubleshoot them. Incorrect DynamoDB Key Mapping. If your GraphQL operation returns the following ...
Read more >
AWS AppSync Developer Guide - Amazon S3
context to a resolver and the conflict handler to perform additional checks. AWS AppSync Client. The location where GraphQL operations are defined.
Read more >
Cannot connect apollo client to aws appsync - Stack Overflow
I have a web app using aws appsync as backend and react + apollo client (v3) as front end.
Read more >
API - GraphQL - Realtime and Offline - Swift - AWS Amplify Docs
Now that the client is set up, you can run a GraphQL query. The syntax is appSyncClient?.fetch(query: <NAME>Query() {(result, error)}) where <NAME> comes...
Read more >
GraphQL Transform - GitHub Pages
When applied to a type, augments the application with # owner and group-based ... try AWSAppSyncClient(appSyncConfig: appSyncConfig) } catch { print("Error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found