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

trouble with config, cant introspect api #356

Open
dantrevino opened this issue Aug 18, 2023 · 1 comment
Open

trouble with config, cant introspect api #356

dantrevino opened this issue Aug 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dantrevino
Copy link

Environment

RootDir: /home/dan/projects/bullhorn Nuxt project info:


👉 Report an issue: https://github.com/nuxt/nuxt/issues/new
👉 Suggest an improvement: https://github.com/nuxt/nuxt/discussions/new
👉 Read documentation: https://nuxt.com

Describe the bug

  'graphql-client': {
    clients: {
      default: {
        schema: './schema.graphql',
        // host: 'https://api.test.deeplake.fi/graphql',
        // headers: {
        //   'Authorization': '<foo>',
        // }
      }
    }
  },

When using host config, I get error forbidden

 Failed to load schema from https://api.test.deeplake.fi/graphql:

        Unexpected response: "Forbidden"
        SyntaxError: Unexpected token F in JSON at position 0

Fine, download the schema and use the schema config.... then I get

 WARN  GraphQL client (default) is missing it's host.                                                                                                               nuxt-graphql-client 

¯_(ツ)_/¯

Expected behaviour

with only the schema config, expect to read the schema file and generate code.

Reproduction

No response

Additional context

No response

Logs

No response

@dantrevino dantrevino added the bug Something isn't working label Aug 18, 2023
@stiflerproger
Copy link

Same ussue. Did you manage to solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants