Giter VIP home page Giter VIP logo

Comments (27)

rohan-buechner avatar rohan-buechner commented on August 15, 2024 6

@gobadiah I just bumped my head on this... ensure you have both the following files

.github/workflows/labeler.yml   // with the action
.github/labeler.yml        //with your labels

from labeler.

dericlima avatar dericlima commented on August 15, 2024 4

The issue here is that the error message is not clear enough. The problem is the .github/labeler.yml is missing, so just add it inside the .github directory and you will be fine.

from labeler.

rr-paras-patel avatar rr-paras-patel commented on August 15, 2024 3

Posting for awareness : This error message can also be seen if you have labeler.yaml instead of labeler.yml.

from labeler.

kingb avatar kingb commented on August 15, 2024 2

Doh. I had created .github/labeler.yaml [WRONG] instead of .github/labeler.yml [Correct].

Suggestion:

  1. Support .yaml as a valid extension
  2. and/or make it explicit that no file was found at .github/labeler.yml

from labeler.

NobbZ avatar NobbZ commented on August 15, 2024 1
##[error]HttpError: Resource not accessible by integration

Thats actually #12.

from labeler.

Gornoka avatar Gornoka commented on August 15, 2024 1

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 Error: 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.

from labeler.

Shankar-CodeJunkie avatar Shankar-CodeJunkie commented on August 15, 2024 1

I too experience the same error, and I have created this preconfigured github action from the Github UI .

Run actions/labeler@v4
  with:
    repo-token: ***
    configuration-path: .github/labeler.yml
    sync-labels: false
##[debug]fetching changed files for pr #2
##[debug]found changed files:
##[debug]  README.md
Error: HttpError: Not Found
Error: Not Found

from labeler.

Gornoka avatar Gornoka commented on August 15, 2024 1

I too experience the same error, and I have created this preconfigured github action from the Github UI .

Run actions/labeler@v4
  with:
    repo-token: ***
    configuration-path: .github/labeler.yml
    sync-labels: false
##[debug]fetching changed files for pr #2
##[debug]found changed files:
##[debug]  README.md
Error: HttpError: Not Found
Error: Not Found

please make sure that the file .github/labeler.yml exists

from labeler.

Gornoka avatar Gornoka commented on August 15, 2024 1

Below, I'm running a cat using the workspace environment variable. And the file exits:

Sem título

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}'.
to validate that the not found error is related to the config file you could try to use my fork branch, which returns another error message in case that this specific file is not found.

from labeler.

MaksimZhukov avatar MaksimZhukov commented on August 15, 2024 1

Hello everyone!
We improved error handling and released a new action version (v4.3.0).
I am closing the issue. Please let us know if you have any questions.
Thank you for your patience!

from labeler.

swuecho avatar swuecho commented on August 15, 2024

totally lost. Could anyone give me a hint? thanks

from labeler.

mansona avatar mansona commented on August 15, 2024

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

from labeler.

nfadili avatar nfadili commented on August 15, 2024

Running into this as well. I've tried every combination of refs I can think of:

  • uses: actions/labeler@v2 - 404
  • uses: actions/labeler@releases/v2 - 404
  • uses: actions/labeler@master - Doesn't have a lib folder

from labeler.

gobadiah avatar gobadiah commented on August 15, 2024

any news on this issue ?

from labeler.

gobadiah avatar gobadiah commented on August 15, 2024

Thanks @rohan-buchner I already have the two files (I renamed the workflow from label.yaml to labeler.yaml just in case). The content of the workflow is copied from the README.md, the content of the other file is just :

api: api/*

It was on a private repo, so I also tried doing this on a public repo, I get the same error.

from labeler.

frextrite avatar frextrite commented on August 15, 2024

I am facing the same issue

##[error]HttpError: Resource not accessible by integration
##[error]Resource not accessible by integration
##[error]Node run failed with exit code 1

from labeler.

gilbertsoft avatar gilbertsoft commented on August 15, 2024

Same issue here, but I'm facing some diffs of PR's from local repo or fork repos:

  • fork repo: label gets NOT added and error is thrown
  • local repo: there are two label actions executed, on the first run the error is thrown, second run is green and the label is added

grafik

grafik

from labeler.

GMNGeoffrey avatar GMNGeoffrey commented on August 15, 2024

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??

2020-01-09T18:07:48.5514225Z ##[section]Starting: Request a runner to run this job
2020-01-09T18:07:48.7204774Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-18.04', require runner match: True
2020-01-09T18:07:48.7854193Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2020-01-09T18:07:48.8029606Z ##[section]Finishing: Request a runner to run this job
2020-01-09T18:07:55.4244546Z Current runner version: '2.163.1'
2020-01-09T18:07:55.4245499Z Prepare workflow directory
2020-01-09T18:07:55.4488152Z Prepare all required actions
2020-01-09T18:07:55.4510698Z Download action repository 'actions/labeler@v2'
2020-01-09T18:07:57.9922248Z ##[group]Run echo "$AUTHOR"
2020-01-09T18:07:57.9922628Z �[36;1mecho "$AUTHOR"�[0m
2020-01-09T18:07:57.9964363Z shell: /bin/bash -e {0}
2020-01-09T18:07:57.9964628Z env:
2020-01-09T18:07:57.9964746Z   AUTHOR: GMNGeoffrey
2020-01-09T18:07:57.9964844Z ##[endgroup]
2020-01-09T18:07:58.0075385Z GMNGeoffrey
2020-01-09T18:07:58.0205498Z ##[group]Run actions/labeler@v2
2020-01-09T18:07:58.0205648Z with:
2020-01-09T18:07:58.0205823Z   repo-token: ***
2020-01-09T18:07:58.0205927Z   configuration-path: .github/labeler.yml
2020-01-09T18:07:58.0206032Z env:
2020-01-09T18:07:58.0206138Z   AUTHOR: GMNGeoffrey
2020-01-09T18:07:58.0206241Z ##[endgroup]
2020-01-09T18:07:58.8602042Z ##[error]HttpError: Not Found
2020-01-09T18:07:58.8604796Z ##[error]Not Found
2020-01-09T18:07:58.8610911Z ##[error]Node run failed with exit code 1
2020-01-09T18:07:58.8616908Z Cleaning up orphan processes

from labeler.

GMNGeoffrey avatar GMNGeoffrey commented on August 15, 2024

Well I'm an idiot. I forgot to git add the untracked .github/labeler.yml file before committing 🤦. I do think a more helpful error message here would be great

from labeler.

smolanoteam avatar smolanoteam commented on August 15, 2024

does someone has a fix. Also, not working for me. Same error

from labeler.

oadam avatar oadam commented on August 15, 2024

This issue should be renamed to :

more explicit error when `labeler.yml` is not found.

from labeler.

Gornoka avatar Gornoka commented on August 15, 2024

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.

from labeler.

sasankaweera123 avatar sasankaweera123 commented on August 15, 2024

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
Error: Not Found

from labeler.

thiago-scherrer avatar thiago-scherrer commented on August 15, 2024

Below, I'm running a cat using the workspace environment variable. And the file exits:

Sem título

from labeler.

mac2000 avatar mac2000 commented on August 15, 2024

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

from labeler.

ret708 avatar ret708 commented on August 15, 2024

Running into this as well. I've tried every combination of refs I can think of:

  • uses: actions/labeler@v2 - 404
  • uses: actions/labeler@releases/v2 - 404
  • uses: actions/labeler@master - Doesn't have a lib folder

from labeler.

ret708 avatar ret708 commented on August 15, 2024

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

from labeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.