-
Notifications
You must be signed in to change notification settings - Fork 343
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
Error "Resource not accessible by integration" is not helpful #595
Comments
This comment has been minimized.
This comment has been minimized.
Should not this error to be reported in the TFI repo? Also we have a ticket there for such a compromise. |
I'm not completely sure about the scope of iterative/terraform-provider-iterative#17, but this looks like a different issue. In this case, the error handling logic belongs to CML itself, not the provider. |
Not sure if related, but also if token lacks permission: {"level":"error","message":"Forbidden","stack":"Error: Forbidden
at Gitlab.request (/usr/lib/node_modules/@dvcorg/cml/src/drivers/gitlab.js:418:38)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Gitlab.commentCreate (/usr/lib/node_modules/@dvcorg/cml/src/drivers/gitlab.js:74:5)
at async CML.commentCreate (/usr/lib/node_modules/@dvcorg/cml/src/cml.js:183:12)
at async Object.exports.handler (/usr/lib/node_modules/@dvcorg/cml/bin/cml/send-comment.js:13:15)"} should be replaced with "Ensure permissions are granted as per https://cml.dev/doc/self-hosted-runners?tab=GitLab#personal-access-token" |
@dacbd did you mean to close this? |
I did 🙃 but maybe this should be part of a larger effort to provide more custom errors instead of bubbling up errors from whatever source produced them? ex: related: #606 |
I fixed it creating a personal token, adding it to repo secrets and using |
The error
RequestError [HttpError]: Resource not accessible by integration
is raised when you use incorrect secret (I've usedsecrets.GITHUB_SECRET
instead of a personal access token with repo+workflow permissions). Unfortunately I had no idea I'm doing this wrong and the error message wasn't pointing out what should be done in this case.Imho, it would be great to have more obvious error message here.
Full error log:
https://github.com/iterative/yolov5/runs/2837021374?check_suite_focus=true
Related discussion: #554 (comment)
The text was updated successfully, but these errors were encountered: