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

Plan error: Fail to send the GET request to github API (404 Not Found) #2010

Closed
tchelovilar opened this issue Jan 19, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@tchelovilar
Copy link

tchelovilar commented Jan 19, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

Atlantis fails to execute the terraform plan after PR creation because doesn't find the PR. Seems that the Atlantis send the PR info request too fast to the github API and it's not available yet.

Reproduction Steps

I'm setting the webhook directly in the repository settings. Sometimes after creating the PR, the Atlantis is not able to find it on Github API. After sending a comment with atlantis plan, the plan works as usual.

Logs

PR comment from Atlantis

GET https://api.github.com/repos/{OWNER}/{REPO}/pulls/24/files?per_page=300: 404 Not Found []

Server Log:

{"level":"error","ts":"2022-01-19T08:26:11.231Z","caller":"events/pull_updater.go:14","msg":"GET https://api.github.com/repos/owner/repo/pulls/24/files?per_page=300: 404 Not Found []","json":{"repo":"owner/repo","pull":"24"},"stacktrace":"github.com/runatlantis/atlantis/server/events.(*PullUpdater).updatePull\n\tgithub.com/runatlantis/atlantis/server/events/pull_updater.go:14\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).runAutoplan\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:77\ngithub.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run\n\tgithub.com/runatlantis/atlantis/server/events/plan_command_runner.go:221\ngithub.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunAutoplanCommand\n\tgithub.com/runatlantis/atlantis/server/events/command_runner.go:163"}
@tchelovilar tchelovilar added the bug Something isn't working label Jan 19, 2022
@AntonUspishnyi
Copy link

We have the same errors, which started several days ago.

@AntonUspishnyi
Copy link

Duplicates #1905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants