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.


Dear Raph,

I am having similar problem in LIFT_OFF V. i have successfully deployed my server to Heroku and i can query it using Apollo explorer. But when i deployed my client app and the home page is loaded i can’t get any data. I only see “ERROR: Response not successful: Received status code 400” as if my frontend can’t communicate with server. please i need your assistant to resolve this. note: that the header and footer was loaded.

Hello @Damisa_Abdullahi
this seems to be a different error, potentially linked to the query itself on your client app.
Can you please share your client and server repos, it’ll make it easier to help, thanks!

@Raph. thank for your respond.

Here are the repo:

Server: GitHub - abdamsab/odyssey-lift-off-part5-server: Odyssey Lift-off V - Server - Course Companion App
Client: GitHub - abdamsab/odyssey-lift-off-part5-client: Odyssey Lift-off V - Client - Course Companion App

anticipating your kind assistance.

problem solved. the repo i clone suppose to use length instead of durationInSecond at this stage of the course. I replaced all the durationInSecond with length and it work. thank everyone for their time especially @MichelleMabuyo.

1 Like