Skip to content
Discussion options

You must be logged in to vote

Hey @jalanh11640! It's hard to say without seeing your code.

But yes, GitLab does a lot of things asynchronously these days, which can take some time especially with things like creating the initial repository, branches, merge requests etc. Try with a simple sleep first, maybe a few seconds, and if that works you can then do it in a smarter loop until success or so.

There's no harm in just putting this into try/except blocks until the resource is available to make requests against. It'll be fewer API calls than trying to query the state of the project.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jalanh11640
Comment options

@nejch
Comment options

nejch Apr 5, 2023
Maintainer

Answer selected by JohnVillalovos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants