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.

[Github Marketplace App] Failing to load the source schema

See original GitHub issue

Hi there, first would like to say this is a wonderful tool.

Just tried to install the Github Marketplace but it’s failing on the build with: Failed to complete schema check ERROR: Failed to load ‘schema.graphql’ (ref: *)

This seems like it cannot find the file schema.graphql which is weird because the file exists in the root folder.

I wonder if this is due to having multiple environments set up. I unfortunately can’t put together a repo to reproduce because of the structure of the project but tried my best to reproduce the gist of the config that I have.

  • .graphql-inspector.yaml
schema: "schema.graphql"

notifications:
  slack: "<Slack webhook url>"

env:
  production:
    branch: "master"
    endpoint:
      url: "<production endpoint url>"
      method: "POST"
    diff:
      failOnBreaking: true
  development:
    branch: "develop"
    endpoint:
      url: "<development endpoint url>"
      method: "POST"
  • .package.json
...
"scripts:' {
	"generate:schema": "graphql-inspector introspect \"./lib/**/*.graphql\" --write schema.graphql"
}
...
  • Branches on the repo : both develop and master exist with the same schema.graphql generated at the root.

Let me know if you need additional details.

Update: I dig in the codebase and found this is what’s throwing https://github.com/kamilkisiela/graphql-inspector/blob/6dd6a02b987d922927d153115dc2be0d01e14efb/packages/github/src/helpers/loaders.ts#L67

Does the presence of the * in (ref: *) means it can’t find the targeted branch ?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
madiodiocommented, Apr 23, 2020

@kamilkisiela Wonderful, it works now.

0reactions
kamilkisielacommented, Apr 23, 2020

@madiodio fix deployed, try to check now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - GitHub Docs
Learn how to resolve the most common problems people encounter in the REST API.
Read more >
marketplace-k8s-app-tools/schema.md at master - GitHub
Some tools, including Helm, stop the deployment if an object in the manifest already exists, so the installation fails because of the placeholder...
Read more >
GitHub Marketplace
You can test your GitHub App with stubbed data. Stubbed data is hard-coded, fake data that will not change based on actual subscriptions....
Read more >
marketplace-k8s-app-tools/verification-integration.md at master
Declare properties needed for tests, which are not already declared in /data/schema.yaml . One common example is the image for the Tester Pod....
Read more >
YAML(786) Unable to load schema · Issue #694 - GitHub
I'm getting the following "Problem" on a yaml file. Unable to load schema from 'https://www.graphql-code-generator.com/config.schema.json': ...
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