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

I am getting a 404 NOT FOUND error #2919

Closed
wills-int opened this issue Mar 12, 2024 · 2 comments
Closed

I am getting a 404 NOT FOUND error #2919

wills-int opened this issue Mar 12, 2024 · 2 comments

Comments

@wills-int
Copy link

This error started on March 5th, out of NOWHERE as there has not been any changes to my code. I have been getting the following error for the past week and I have tried so many ways and variations to fix this. Here is the error that I am receiving;

github.GithubException.UnknownObjectException: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/actions/self-hosted-runners#list-self-hosted-runners-for-a-repository"}

Below, is the command to register the token for our job;

def get_runner_token(repo, token):
url = 'https://api.github.com/repos/{repo}/actions/runners/registration-token'.format(repo=repo)
headers = { "Accept": "application/json", "Authorization": "token {token}".format(token=token) }
status, data = ex.post(url, headers=headers)
return status, json.loads(data.decode("utf-8"))

My API PATH, from my configuration script is the following;

"repos/{repo}/actions/runners/registration-token"

@EnricoMi
Copy link
Collaborator

From the looks of your code, it does not seem you are using PyGithub at all, but access the Github API directly. Please refer to Github support for that.

I'd reckon there is an issue with the token provided. Either it expired, or has lost necessary rights.

@wills-int
Copy link
Author

Apologies, wrong "support" channel. I have added this issue to the link, you've give me. Thank you

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