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 actions not working

See original GitHub issue

I can’t get graphql-inspector to work on my repo. I have enabled the app for my repo, and added the following in my main.workflow:

workflow "On Push" {
  on = "push"
  resolves = "Check GraphQL with Inspector"
}

workflow "On Pull Request" {
  on = "pull_request"
  resolves = "Check GraphQL with Inspector"
}

# Deploy and Host GraphQL Inspector
action "Check GraphQL with Inspector" {
  uses = "kamilkisiela/graphql-inspector@v0.13.3"
  secrets = ["GITHUB_TOKEN"]
}

package.json:

 "graphql-inspector": {
    "diff": true,
"schema": {
      "ref": "head/master",
      "path": "new.graphql"
    }
}

action debug output:

[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
01:10:02.143Z DEBUG probot: Webhook received
  event: {
    "event": "push",
    "id": "b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597",
    "repository": "steebchen/test-actions"
  }
01:10:02.171Z  INFO event: GraphQL Inspector started (action: gh-action) - steebchen/test-actions#a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6 (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
01:10:02.521Z DEBUG github: GitHub request: GET /app/installations - 401 undefined (installation=undefined)
  params: {
    "per_page": 100,
    "baseUrl": "https://api.github.com",
    "request": {
      "timeout": 0
    }
  }
01:10:02.523Z ERROR probot: Your private key (usually a .pem file) is not correct. Go to https://github.com/settings/apps/YOUR_APP and generate a new PEM file. If you're deploying to Now, visit https://probot.github.io/docs/deployment/#now.
  HttpError: {"message":"A JSON web token could not be decoded","documentation_url":"https://developer.github.com/v3"}
      at response.text.then.message (/usr/local/share/.config/yarn/global/node_modules/@octokit/rest/lib/request/request.js:72:19)
      at process._tickCallback (internal/process/next_tick.js:68:7)
01:10:02.762Z DEBUG github: GitHub request: POST https://api.github.com/repos/steebchen/test-actions/check-runs - 201 Created (installation=undefined)
  params: {
    "name": "graphql-inspector",
    "started_at": "2019-03-17T01:10:02.172Z",
    "head_sha": "a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6",
    "status": "in_progress",
    "baseUrl": "https://api.github.com",
    "request": {
      "timeout": 0
    }
  }
01:10:02.763Z  INFO event: [check-start] sent - steebchen/test-actions#a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6 (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
01:10:03.546Z DEBUG github: GitHub request: POST /graphql - 200 OK (installation=undefined)
  params: {
    "baseUrl": "https://api.github.com",
    "query": "\n    query GetFile($repo: String!, $owner: String!, $expression: String!) {\n      repository(name: $repo, owner: $owner) {\n        object(expression: $expression) {\n          ... on Blob {\n            text\n          }\n        }\n      }\n    }\n  ",
    "variables": {
      "repo": "test-actions",
      "owner": "steebchen",
      "expression": "a17c5c7e3f02ea70c7690f0e34e8d2797e5f4fa6:package.json"
    },
    "request": {
      "timeout": 0
    }
  }
01:10:04.572Z DEBUG github: GitHub request: POST /graphql - 200 OK (installation=undefined)
  params: {
    "baseUrl": "https://api.github.com",
    "query": "\n    query GetFile($repo: String!, $owner: String!, $expression: String!) {\n      repository(name: $repo, owner: $owner) {\n        object(expression: $expression) {\n          ... on Blob {\n            text\n          }\n        }\n      }\n    }\n  ",
    "variables": {
      "repo": "test-actions",
      "owner": "steebchen",
      "expression": "head/master:new.graphql"
    },
    "request": {
      "timeout": 0
    }
  }
01:10:04.575Z ERROR event: Cannot read property 'text' of null (id=b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597)
  TypeError: Cannot read property 'text' of null
      at /usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:57:72
      at step (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:32:23)
      at Object.next (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:13:53)
      at fulfilled (/usr/local/share/.config/yarn/global/node_modules/@graphql-inspector/github/dist/probot.js:4:58)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  --
  event: {
    "event": "push",
    "id": "b9bf6af5-60e7-4192-9dfc-d6fbd7d1b597",
    "repository": "steebchen/test-actions"
  }

### FAILED Check GraphQL with Inspector 01:10:09Z (26.333s)

What can I do to fix it? Thanks in advance!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kamilkisielacommented, Apr 24, 2019

That’s the expected behavior right now, just to see what’s the reason behind failed file loading, so instead of seeing “File a.yml couldn’t be found” we see why is that. I might change it in the future so it won’t “scream” that loud in action’s log.

1reaction
kamilkisielacommented, Mar 27, 2019

Release in v1.15.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Action workflow not running - Stack Overflow
Whenever you add a new workflow, sometimes it may happen that workflow may not get into the running phase even after everything is...
Read more >
My GitHub Actions workflows are not starting - Robs blog
The workflow might have been disabled. On forks all workflows get disabled and you need to manually enabled them (makes sense of course)....
Read more >
Issues - GitHub
GitHub Actions do not work/run when the .github/workflows/checks.yml file is created in a commit which creates several files at once #642.
Read more >
Workflow is not running · Issue #44 · actions/first-interaction
Hi Team, We are using the first-interaction github actions workflow in our repository. Since a few hours we are unable to get the...
Read more >
Manually running a workflow - GitHub Docs
Under your repository name, click Actions. ... In the left sidebar, click the workflow you want to run. ... Above the list of...
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