You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"}
The text was updated successfully, but these errors were encountered:
Community Note
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
Server Log:
The text was updated successfully, but these errors were encountered: