Skip to content
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

Gateway schema init issues No valid service SDLs were provided #116

Open
maicolbruski opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@maicolbruski
Copy link

Hi,

I tried to create a gateway for external graphql, but a received a error:

throw new MER_ERR_GQL_GATEWAY_INIT('No valid service SDLs were provided')
          ^
FastifyError [Error]: Gateway schema init issues No valid service SDLs were provided

code:

import Fastify from 'fastify'

const gateway = Fastify()
gateway.register(mercuriusGateway, {
  gateway: {
    services: [
      {
        name: 'brands',
        url: 'http://localhost:4001/graphql'
      }
    ]
  }
})

gateway.listen({ port: 4000 })

My external graphql service its ok on Port 4001, but using yogagraphql.

@mcollina
Copy link
Contributor

Thanks for reporting!

Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants