Can not access graphQL functions endpoint

If you visit https://zen-agnesi-bb4aa6.netlify.app/ you can access the graphiql successfully but when I enter this endpoint to my graphql client, it does not return anything.

For example:

const client = new ApolloClient({
  uri: "https://zen-agnesi-bb4aa6.netlify.app",
  cache: new InMemoryCache()
});

I also tried “https://zen-agnesi-bb4aa6.netlify.app/functions/graphql” with no luck. My graphql client fails with no status code.

Any ideas?
Thanks.

What happens when you try to run it locally? That’s how most folks debug their functions:

That would let you examine things much more easily than running in AWS with only our logs.

If you can’t do that or it already does work locally, I suppose you could try logging more to see what happens? Debugging by print statement isn’t awesome, but it’s probably what I’d recommend without any more understanding.

Also, the URL for your function will be:

https://zen-agnesi-bb4aa6.netlify.app/.netlify/functions/graphql

  • rather than what you wrote :slight_smile:

I’m having issues accessing the new new graph feature… trying to connect to stripe or spotify and getting htis error message.

Authentication Error

There was an error authenticating with Spotify.

The authentication request was either not found or has expired.

If you’re the developer, please see the doc for how to craft a valid authentication url.

Hey there, @sophek :wave:

Thats for reaching out and welcome to the Netlify Forums! It looks like you have opened two threads regarding this. We ask that folks keep related questions in one thread so that we can streamline our Support to you.

I am going to close this current thread, and we can continue here: Graph QL feature