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

Failed to update github: 404-{"message":"Not Found","documentation_url":"https://developer.github.com/v3/repos/statuses/#create-a-status"} #19

Closed
calaway opened this issue Nov 7, 2018 · 5 comments

Comments

@calaway
Copy link
Contributor

calaway commented Nov 7, 2018

Lois stopped reporting the status check when running on one of our repos on CircleCI a few days ago. Upon further inspection it is throwing this error.

Failed to update github: 404-{"message":"Not Found","documentation_url":"https://developer.github.com/v3/repos/statuses/#create-a-status"}

Example CircleCI build: https://circleci.com/gh/octanner/daito/935

Nothing had recently changed in terms of the CircleCI config in the repo or the env vars on Circle.

Any thoughts on how to address this?

@ketiko
Copy link
Owner

ketiko commented Nov 9, 2018

If you are using SSO with Github, have you enabled the GITHUB_CREDENTIALS token with your SSO provider? It might be failing if you recently enabled SSO on your organization and the token isn't approved yet. @calaway

@ketiko
Copy link
Owner

ketiko commented Nov 9, 2018

You can check them here https://github.com/settings/tokens

@ketiko
Copy link
Owner

ketiko commented Nov 9, 2018

I've seen github return 404 when it's because the authorization is denied and you'd typically expect a 403 forbidden instead.

@calaway
Copy link
Contributor Author

calaway commented Nov 9, 2018

Thank you. This helped me get to the bottom of it.

The problem was that the GitHub bot whose token was being used by Lois to report back from CircleCI had somehow been removed as a collaborator on the repo. I added the bot back as a collaborator on GitHub and it solved the problem.

@calaway calaway closed this as completed Nov 9, 2018
@calaway
Copy link
Contributor Author

calaway commented Nov 10, 2018

For posterity:

Error code 403: unauthorized (missing or invalid auth token on CircleCI)

Error code 404: not found (valid auth token on CircleCI, but either the repo you're reporting to does not exist or the owner of the token does not have access to that repo)

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