question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to load schema

See original GitHub issue

I’ve faced with issue when I can’t load schema from our graphql server. In the same time I can work with online playground without any problem.

Screen Shot 2020-07-16 at 19 58 57

this is my config:

schema:
  - https://myserver.com/reportings/graphql:
      headers:
        authorization: 'api-key blablabla'
documents: null
generates:
  src/generated/graphql.ts:
    plugins:
      - 'typescript'
      - 'typescript-resolvers'

Also I se this message in the trace. Could not obtain introspection result, received: "Object reference not set to an instance of an object."

looks like the problem with graphql server, because I have no problem with another playground with the same config file… but I still don’t understand how to debug it

is there a way to emulate fetch schema by cUrl for example?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dotansimhacommented, Oct 19, 2020

@UlisesAC4 you have an indentation issue with your YAML:

overwrite: true
schema: 
  - "my_endpoint":
        headers:
          jwt: my_token
1reaction
ulisesac4commented, Oct 20, 2020

@dotansimha thank you for this, now everything is fine!

Read more comments on GitHub >

github_iconTop Results From Across the Web

graphql-codegen fails to load GraphQLSchema #4095 - GitHub
Describe the bug graphql-codegen fails to load Schema when GraphQLSchema is provided via a custom loader. However, what is more interesting ...
Read more >
Failed to load schema from http://localhost:8000/graphql ...
My localhost is serving the GraphiQL interface just fine, showing the correct schema and all, but the code-generator script shows the same as ......
Read more >
Loading GraphQL Schemas from Different Sources
Load GraphQLSchema by Using Different Loaders from Different Sources · Using #import Expression · Binding to HTTP Server.
Read more >
Unable to load schema for plug-in error when configuring an ...
Solution · Ensure you have the correct server credentials. · Ensure the LDAP server name is correct. · Ensure all the communications ports...
Read more >
Failed to load schema in discovery_schema timeout ... - Airbyte
Is this your first time deploying Airbyte?: No OS Version / Instance: Ubuntu 22.04.1 LTS Deployment: Docker Airbyte Version: 0.40.06 Source ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found