Giter VIP home page Giter VIP logo

Comments (10)

helfer avatar helfer commented on March 29, 2024 3

I think the issue is that the argument should be called endpointURL, not endpointUrl.

from apollo-server.

casoetan avatar casoetan commented on March 29, 2024 1

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.

screenshot 2016-08-28 11 59 52

from apollo-server.

nnance avatar nnance commented on March 29, 2024

Do you have a link to a complete project in GitHub that I can review?

from apollo-server.

casoetan avatar casoetan commented on March 29, 2024

NO complete project.

But, I swapped the ApolloHapi with hapi-graphql and also tried @risingstack/graffiti and it worked well.

PS. Sorry for the late response.

from apollo-server.

helfer avatar helfer commented on March 29, 2024

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)

from apollo-server.

helfer avatar helfer commented on March 29, 2024

I'm closing this in favor of #109, which seems to be the same issue.

from apollo-server.

helfer avatar helfer commented on March 29, 2024

are you sure you're passing in the right options? Because passing in bad options is the only way I could imagine getting an undefined in the url.

from apollo-server.

casoetan avatar casoetan commented on March 29, 2024

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' }
  }
]

from apollo-server.

casoetan avatar casoetan commented on March 29, 2024

Yep @helfer that was it.

Maybe we need to update the docs.

Cheers

from apollo-server.

helfer avatar helfer commented on March 29, 2024

@casoetan I looked it up in the docs, that's how I found out 😉

from apollo-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.