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

Request fails when executing graphql query #3

Closed
ktravers opened this issue Jun 13, 2019 · 3 comments
Closed

Request fails when executing graphql query #3

ktravers opened this issue Jun 13, 2019 · 3 comments

Comments

@ktravers
Copy link

I ran into some trouble trying to set up this action on a private project repo. I'm getting the same consistent error message every time the action is triggered, and I wanted to double check that my config is correct. Hoping I've just made a syntax error somewhere.

# main.workflow

workflow "Apply PR labels" {
  on = "pull_request"
  resolves = "Auto label"
}

action "Auto label" {
  uses = "banyan/auto-label@master"
  secrets = ["GITHUB_TOKEN"]
}
// auto-label.json

{
  "rules": {
    "dependency-change": ["*.lock", "*lock.json"]
  }
}
# error log output

### STARTED Auto label 22:59:53Z

Pulling image: gcr.io/github-actions-images/action-runner:latest
latest: Pulling from github-actions-images/action-runner
169185f82c45: Pulling fs layer
0ccde4b6b241: Pulling fs layer
d0372f57daa2: Pulling fs layer
165911d108d6: Pulling fs layer
54996bce1de5: Pulling fs layer
165911d108d6: Waiting
54996bce1de5: Waiting
d0372f57daa2: Verifying Checksum
d0372f57daa2: Download complete
169185f82c45: Verifying Checksum
169185f82c45: Download complete
0ccde4b6b241: Verifying Checksum
0ccde4b6b241: Download complete
54996bce1de5: Verifying Checksum
54996bce1de5: Download complete
165911d108d6: Verifying Checksum
165911d108d6: Download complete
169185f82c45: Pull complete
0ccde4b6b241: Pull complete
d0372f57daa2: Pull complete
165911d108d6: Pull complete
54996bce1de5: Pull complete
Digest: sha256:c9bb432ec5ec08ee08b040a9fccacebbbf8a91444dac4721600cf5dca9dae57e
Status: Downloaded newer image for gcr.io/github-actions-images/action-runner:latest
fc613b4dfd6736a7bd268c8a0e74ed0d1c04a959f59dd74ef2874983fd443fc9: Pulling from gct-12-xnk3et5bc0d0w3n07gb2ks2/9cc77d40ff4be729af9e5ac7f28692355212393f0a695dea9207a2ea0a7e8b49/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1
e7c96db7181b: Already exists
773afe93be0d: Already exists
223db68b3560: Already exists
609526630549: Already exists
18a3d18fedf4: Pulling fs layer
579e8928e8c7: Pulling fs layer
ddf533e1d06e: Pulling fs layer
18a3d18fedf4: Verifying Checksum
18a3d18fedf4: Download complete
18a3d18fedf4: Pull complete
ddf533e1d06e: Verifying Checksum
ddf533e1d06e: Download complete
579e8928e8c7: Verifying Checksum
579e8928e8c7: Download complete
579e8928e8c7: Pull complete
ddf533e1d06e: Pull complete
Digest: sha256:5a7af3eabcc06261b203d10ef022f933730c8479b24f4c706b62b9e622ae9aed
Status: Downloaded newer image for gcr.io/gct-12-xnk3et5bc0d0w3n07gb2ks2/9cc77d40ff4be729af9e5ac7f28692355212393f0a695dea9207a2ea0a7e8b49/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1:fc613b4dfd6736a7bd268c8a0e74ed0d1c04a959f59dd74ef2874983fd443fc9
Step 1/9 : FROM node:alpine
alpine: Pulling from library/node
Digest: sha256:d9b062a10f27ae86fa8edb1ecaa84f39946e78a0d62949bb673ee0cf8f5f2a29
Status: Downloaded newer image for node:alpine
 ---> d4edda39fb81
Step 2/9 : LABEL "com.github.actions.name"="autolabel"
 ---> Using cache
 ---> 0ae6439c82c7
Step 3/9 : LABEL "com.github.actions.description"="Add labels to Pull Request based on matched file patterns"
 ---> Using cache
 ---> 81ba4b327736
Step 4/9 : LABEL "com.github.actions.icon"="flag"
 ---> Using cache
 ---> 3a5414570914
Step 5/9 : LABEL "com.github.actions.color"="gray-dark"
 ---> Using cache
 ---> 16c4ef178489
Step 6/9 : COPY . .
 ---> Using cache
 ---> ab1efd04dcb7
Step 7/9 : RUN yarn install
 ---> Using cache
 ---> 9e560dca134a
Step 8/9 : RUN apk --no-cache add git
 ---> Using cache
 ---> 66f8c322fd91
Step 9/9 : ENTRYPOINT ["node", "/dist/entrypoint.js"]
 ---> Using cache
 ---> d82a22bd2e1e
Successfully built d82a22bd2e1e
Successfully tagged gcr.io/gct-12-xnk3et5bc0d0w3n07gb2ks2/9cc77d40ff4be729af9e5ac7f28692355212393f0a695dea9207a2ea0a7e8b49/8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1:fc613b4dfd6736a7bd268c8a0e74ed0d1c04a959f59dd74ef2874983fd443fc9
Already have image (with digest): gcr.io/github-actions-images/action-runner:latest
Result:  {
  repository: {
    pullRequest: {
      id: 'pullRequestId',
      baseRefOid: 'abc',
      headRefOid: 'abc',
      baseRefName: 'master',
      headRefName: 'auto-label',
      labels: [Object]
    },
    labels: { edges: [Array] }
  },
  rateLimit: {
    limit: 1000,
    cost: 1,
    remaining: 999,
    resetAt: '2019-06-14T00:00:15Z'
  }
}
 ---> Current status
allLabels:  {
  'dependency-change': 'exampleLabelId'
}
currentLabelNames:  Set {}
diffFiles:  [
  '.github/auto-label.json',
  '.github/main.workflow',
  'Gemfile.lock',
  'mix.lock'
]
newLabelNames:  Set { 'dependency-change' }
ruledLabelNames:  Set { 'dependency-change' }
labelNamesToAdd:  Set { 'dependency-change' }
Request failed:  {
  query: '\n    mutation {\n      addLabelsToLabelable(input: {labelIds: ' +
    '["exampleLabelId"], labelableId: ' +
    '"pullRequestId"}) {\n        ' +
    'clientMutationId\n      }\n    }',
  headers: { accept: 'application/vnd.github.starfire-preview+json' }
} Something went wrong while executing your query. Please include `E752:5D05:3EFD52:9BEB49:5D02D57F` when reporting this issue.
addLabelsToLabelable has been failed. 
labelNamesToRemove:  Set {}

### FAILED Auto label 23:00:19Z (26.319s)
@banyan
Copy link
Owner

banyan commented Jun 14, 2019

@ktravers

Thanks for letting me know! It happens on my end too about an hour ago. I haven't changed any code these days. so perhaps the change of graphql: https://developer.github.com/v4/changelog/ not sure if it's intentional or not. let me check...

@banyan
Copy link
Owner

banyan commented Jun 17, 2019

it started working again. 🤔
but I didn't do anything. it's weird.
I asked here: https://github.community/t5/GitHub-API-Development-and/Error-retrieving-addLabelsToLabelable-via-GraphQL/m-p/25627#M1969

@ktravers
Copy link
Author

@banyan thanks for checking! I just re-tried on my end, and it's working for me now too. i also didn't change anything.

maybe it was a minor (and unreported) outage? regardless, everything's working now, so gonna go ahead and close this issue. thanks again for your help and for this super helpful action!

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