Possible Unhandled Promise Rejection
See original GitHub issueApollo 1.0.0-rc.4. React Native 0.42.3
I have some query:
client.query({
query: SOME_QUERY,
options: {
fetchPolicy: 'network-only',
},
variables: { ... },
}).then(result => {
}).catch(error => {
console.log(error)
});
And when I turn off my internet connection I am getting this error message: Possible Unhandled Promise Rejection (id: 0):Network error: Network request failed
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
React Native: Possible unhandled promise rejection
Possible unhandled promise rejection (id:0: Network request failed). Here's the promise code, I don't see what's wrong here, any ideas?
Read more >React Native Auth0 Possible Unhandled Promise Rejection
My understanding of the error is that it is saying, 'we can't find any value for the Auth0Module object property you are looking...
Read more >Possible Unhandled Promise Rejection (id:0) #7107 - GitHub
If this object is disturbed or locked, return a new promise rejected with a TypeError. Simply said, the following is likely to produce...
Read more >Handling those unhandled promise rejections with JS async ...
Another possibility is that you know you need to catch the rejected promise. In this case, what might be happening is this: You...
Read more >React Native Auth0 Possible Unhandled Promise Rejection
Possible Unhandled Promise Rejection (id: 1): TypeError: undefined is not an object (evaluating '_yield$getCredentials.accessToken').
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@helfer please reopen this issue. I am getting this error again but now with refetch function. My code
I see my profile, switch off my internet connection and make refetch then I am see Network Error at props.error. This is fine I can handle errors but I think query is still running and after query timeout I got the same error as above.
For everyone seeing this in refetch, see #3631