# Graphql function 404 response to request from apollo

**URL:** <https://answers.netlify.com/t/graphql-function-404-response-to-request-from-apollo/13646>\
**Category:** Support\
**Tags:** gatsby, deployment\
**Created:** [April 30, 2020, 2:35am UTC](https://answers.netlify.com/t/graphql-function-404-response-to-request-from-apollo/13646 "2020-04-30T02:35:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sowasred](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/sowasred/32/10050_2.png) [@sowasred](https://answers.netlify.com/u/sowasred)\
**Post date:** [April 30, 2020, 2:35am UTC](https://answers.netlify.com/t/graphql-function-404-response-to-request-from-apollo/13646/1 "2020-04-30T02:35:35Z")

</div>

Site name: www.jacketstore.netlify.app/  
Everything works fine locally but when we try to open our website on the deployed address, we get 404 response from graphql API. We basically tried everything. I am posting our toml file, apollo client file and error message. Please let me know if there is anything else do you want me to post.

console

```auto
POST https://jacketstore.netlify.app/.netlify/functions/graphql 404

```

netlify.toml

```auto
[build]
functions = "functions"
# Production context: all deploys from the Production branch set in your site's
# deploy contexts will inherit these settings.
[context.production]
 publish = "public/"
 command = "npm run build"
 environment = { GATSBY_CONTENTFUL_SPACE_ID = " ***", GATSBY_CONTENTFUL_ACCESS_TOKEN = "***", GATSBY_URI = "/.netlify/functions/graphql", NODE_VERSION = "13.9.0", YARN_VERSION ="1.17.3"}
  

```

ApolloClient.js

```auto
import fetch from "isomorphic-fetch"

import ApolloClient from "apollo-boost"

export const client = new ApolloClient({
  fetch,
  uri: process.env.GATSBY_URI,
})

```

What might be our problem and how can we solve it?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Dennis](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/dennis/32/34_2.png) [@Dennis](https://answers.netlify.com/u/Dennis)\
**Post date:** [May 4, 2020, 5:52pm UTC](https://answers.netlify.com/t/graphql-function-404-response-to-request-from-apollo/13646/2 "2020-05-04T17:52:06Z")

</div>

Hi, I checked your site and it doesn’t look like the graphql function was deployed. You can see that here: [Netlify App](https://app.netlify.com/sites/jacketstore/functions) (you’ll need to be logged in). Doing a POST to [https://jacketstore.netlify.app/.netlify/functions/test](https://jacketstore.netlify.app/.netlify/functions/test) does result in ‘hello world’.
