com.apollographql.apollo.exception.ApolloNetworkException: Failed to execute http call

I am trying to connect mobile app to graphQL which is on my local machine but everytime ApolloNetworkException displayed. Do let me know if anyone has done testing on local machine and came across such problem


Are you using the emulator? If yes, the server address you are passing to your ApolloClient should be instead of localhost (more info here).

If using a real device, then you need to be on the same network, and should use the ip address of your local machine.