New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Apollo Server GraphiQL interface specifies endpoint as undefined #95
Comments
Do you have a link to a complete project in GitHub that I can review? |
NO complete project. But, I swapped the PS. Sorry for the late response. |
I think we should override graphql-js's formatError function and by default use one that prints the stack trace on the server. I think that would help a lot of people debug things. I've opened a separate issue about it (#111) |
I'm closing this in favor of #109, which seems to be the same issue. |
Hello @helfer Just noticed after review, that this error seems to deal with the graphiql endpoint not connecting with my running graphql application. The application works fine when used with a GraphiQL Desktop application. See screen below. |
are you sure you're passing in the right options? Because passing in bad options is the only way I could imagine getting an |
Hi @helfer The configuration I'm passing are as described in the docs. const plugins = [
{
register: new ApolloHAPI(),
options: graphqlOptions,
routes: { prefix: '/graphql' }
},
{
register: new GraphiQLHAPI(),
options: { endpointUrl: '/graphql' },
routes: { prefix: '/graphiql' }
}
] |
I think the issue is that the argument should be called |
Yep @helfer that was it. Maybe we need to update the docs. Cheers |
@casoetan I looked it up in the docs, that's how I found out 😉 |
* op-reg: Improve error messaging for the operation registry plugin. * Correct incorrect comment about return value. As pointed out by @trevor-scheer in https://github.com/apollographql/apollo-platform-commercial/pull/95/files#r281749516
* op-reg: Improve error messaging for the operation registry plugin. * Correct incorrect comment about return value. As pointed out by @trevor-scheer in https://github.com/apollographql/apollo-platform-commercial/pull/95/files#r281749516
* op-reg: Improve error messaging for the operation registry plugin. * Correct incorrect comment about return value. As pointed out by @trevor-scheer in https://github.com/apollographql/apollo-platform-commercial/pull/95/files#r281749516
* op-reg: Improve error messaging for the operation registry plugin. * Correct incorrect comment about return value. As pointed out by @trevor-scheer in https://github.com/apollographql/apollo-platform-commercial/pull/95/files#r281749516
I've hit a roadblock setting up HapiJS with the ApolloStack.
the error when I post to /graphql
With graphiql, the chrome console reports
I must have missed something.
my config
the options passed in
My Schema
The text was updated successfully, but these errors were encountered: