Skip to content

When creating a new repo, sometimes getDefaultBranch fails #372

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

Closed
noam-codefresh opened this issue Sep 7, 2022 · 0 comments · Fixed by #373
Closed

When creating a new repo, sometimes getDefaultBranch fails #372

noam-codefresh opened this issue Sep 7, 2022 · 0 comments · Fixed by #373
Assignees

Comments

@noam-codefresh
Copy link
Collaborator

if getDefaultBranch (which is basically getRepo) is being called too soon after the createRepo, it might return 404 (Not Found)
i suspect this might happen more with users that have more repositories. maybe some background indexing process in the git provider might take longer.

failed to clone test repo: failed to initialize repository: failed to get default branch from provider. Error: owner <owner> not
 found: GET https://api.github.com/repos/<owner>/test: 404 Not Found
@noam-codefresh noam-codefresh self-assigned this Sep 7, 2022
@noam-codefresh noam-codefresh linked a pull request Sep 7, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant