-
Notifications
You must be signed in to change notification settings - Fork 424
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]HttpError: Not Found #16
Comments
totally lost. Could anyone give me a hint? thanks |
I have hit this same issue when testing out the workflow 🤔 I don't know how public this is but here is the PR that is failing: mansona/actions-intro#1 it is an empty repo that is just set up to test the action |
Running into this as well. I've tried every combination of refs I can think of:
|
any news on this issue ? |
@gobadiah I just bumped my head on this... ensure you have both the following files
|
Thanks @rohan-buchner I already have the two files (I renamed the workflow from
It was on a private repo, so I also tried doing this on a public repo, I get the same error. |
I am facing the same issue
|
Thats actually #12. |
I'm experiencing the same issue: https://github.com/GMNGeoffrey/iree/pull/10/checks?check_run_id=381938064 Could someone from the team please respond??
|
Well I'm an idiot. I forgot to |
The issue here is that the error message is not clear enough. The problem is the |
Posting for awareness : This error message can also be seen if you have |
does someone has a fix. Also, not working for me. Same error |
This issue should be renamed to :
|
Doh. I had created Suggestion:
|
I have run into this error when copying workflows from one repo to another ( and forgetting the labeler.yml in the process). It would be great if the error message for a the missing config file was a little more explicit. |
When I add the Create CODE_OF_CONDUCT.md then merge it. I'm getting this error also. Can anyone help Error: HttpError: Not Found |
I have seen this error when this action fails to find a file it requires, for me it was the config file (labeler.yaml) at the wrong location. I would make sure that you did not accidentaly moved / deleted / renamed that or any other file this action relies on. |
I too experience the same error, and I have created this preconfigured github action from the Github UI .
|
please make sure that the file |
As far as I see it the action fetches the config directly from the github API through the client.rest.repos.getContent(...) function, I think the location should not use the '${GITHUB_WORKSPACE}'. |
The last few messages and examples are indeed correct Here is an short reproduction: - run: printf 'bug:\n- *\n' > /tmp/labeler.yml
- uses: actions/labeler@v4
with:
configuration-path: /tmp/labeler.yml And because in code we have this it indeed will never ever work because even so it accepts the file path, it expects it to be committed async function fetchContent(
client: ClientType,
repoPath: string
): Promise<string> {
// add me to fix an issue
if (fs.existsSync(repoPath)) {
return Promise.resolve(fs.readFileSync(repoPath, 'utf8'));
}
const response: any = await client.rest.repos.getContent({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
path: repoPath,
ref: github.context.sha
});
return Buffer.from(response.data.content, response.data.encoding).toString();
} And it seems that there is already an pull request with similar fix - #394 so hopefully it will be merged somewhere in the future but for now it seems that there is no workarounds except of running some github script action and doing things by hands |
|
|
Hello everyone! |
2019-08-30T04:47:25.3784277Z Current runner version: '2.157.2'
2019-08-30T04:47:25.3803572Z Prepare workflow directory
2019-08-30T04:47:25.4369293Z Prepare all required actions
2019-08-30T04:47:25.4675219Z Download action repository 'actions/labeler@v2'
2019-08-30T04:47:27.8427078Z ##[group]Run actions/labeler@v2
2019-08-30T04:47:27.8498581Z with:
2019-08-30T04:47:27.8498775Z repo-token: ***
2019-08-30T04:47:27.8498811Z configuration-path: .github/labeler.yml
2019-08-30T04:47:27.8498846Z ##[endgroup]
2019-08-30T04:47:28.4480335Z ##[error]HttpError: Not Found
2019-08-30T04:47:28.4807300Z ##[error]Not Found
2019-08-30T04:47:28.4832078Z ##[error]Node run failed with exit code 1
2019-08-30T04:47:28.5015714Z Cleaning up orphan processes
The text was updated successfully, but these errors were encountered: