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.

Android gives "[Error: Network error: Requested keys of a value that is not an object.]"

See original GitHub issue

I’m trying a basic app with AppSync on Android phone and emulators and graphl query is not working properly while it works fine on iOs mobile.

The following error appears when executing it:

[Error: Network error: Requested keys of a value that is not an object.]

Can someone guide me on this error?

    AllTakes: graphql(AllTakes, {
        options: {
            fetchPolicy: 'cache-and-network'
        },
        props: ({data}) => {
            console.log(data)
            return {
                loading: data.loading,
                takes: data.takes
            }
        }
    })

const AllTakesResponse = compose(
  AllTakes
)(Home);

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
vonkanehoffencommented, Aug 21, 2018

@manueliglesias I think there’s still an issue here… I tried upgrading aws-appsync 1.3.2 -> 1.3.4 and in my CRNA app I get an “Expo has stopped” error with no further debug info when running a mutation. Downgrading again and restarting the bundler fixes it. This is my repo if you want a look: https://github.com/vonkanehoffen/FoldReactNative2

3reactions
vonkanehoffencommented, Aug 13, 2018

Aha. Downgrading to "aws-appsync": "1.3.2", seems to fix this for now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Requested keys of a value that is not an object ...
I believe that if you get the fetch output right (as an object), the problem could be the way you wrote your ListView...
Read more >
NetworkException | Android Developers
int, ERROR_HOSTNAME_NOT_RESOLVED, Error code indicating the host being sent the request could not be resolved to an IP address.
Read more >
Requested keys of a value that is not an object. React-native ...
Coding example for the question TypeError: Requested keys of a value that is not an object. React-native-React Native.
Read more >
Error() constructor - JavaScript - MDN Web Docs
When Error is used like a function, that is without new , it will return an Error object. Therefore, a mere call to...
Read more >
Error and Warning Dictionary | Twilio
Explore the full list of all possible Twilio REST API error codes. ... ERROR. HTTP connection over Twilio Interconnect is not allowed.
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