when opening link https://bitbucket.org/<workspace>/<repo>
the following is rendered:
Creating repository
Please wait a moment while we create your repository.
----
Context – how the repo was created
The repo was created via the Bitbucket Cloud REST API (API token auth), then we tried to use it from Git. Flow:
→ 403 (so we assumed it didn’t exist and tried to create it).
Body: {"scm": "git", "is_private": true, "project": {"key": "<PROJECT_KEY>"}}
→ 201 Created (or 409 Conflict if it already existed from a previous attempt).
- Git (a few seconds later):
→ 403 with message: “This repository is currently not available.”
- The repo does appear in the workspace repository list on the web, but opening
“Creating repository – Please wait a moment while we create your repository.”
It has stayed in that state for [X hours/days].
→ Response body: “Repository currently not available.” (so we can’t delete it via API either).
So from our side: create via API succeeds (or we get 409), but the repo never leaves the “creating” state; Git and the DELETE API keep saying “repository is currently not available.” We’re using an API token with repository admin (and delete) scopes; the workspace and project otherwise work for other repos.
----
this is the only repo in the workspace that’s stuck