Lift-off Part 1: Error Fail to Fetch

I’ve been trying to follow the Lift-Off Part 1, and I seem to have run into an error in the client part of it all. I keep getting the message ERROR: Failed to Fetch on the Localhost. The Catstronaut header and Apollo Footer will show up just fine, but the the middle part where everything else should be just gives me an error message. Anyone know what’s going on?

Hello Kevin, thank you for reaching out and learning with Apollo Odyssey.

The error you’re seeing comes form the client’s inability to communicate with the graphQL server.
Some possible source of this problem:

  • your graphQL server is not running
  • The uri value in the client config (in client/src/index.js) has a typo, or is not pointing to your server’s address
const client = new ApolloClient({
  uri: 'http://localhost:4000', // <- this could be the issue if not set correctly
  cache: new InMemoryCache(),

Can you try double checking those points and see it that fix the problem?


Yes, it seems to be working now. I didn’t have the graphQL server running. Thanks.