403/"Repository currently not available." after forking a repository.

Alex C. I'm New Here Dec 19, 2017

Hi @ all,

i am using Bitbucket Cloud and i am forking a Repository through Rest-API v1

This is working very well, but if i try to make changes to this new Repository immediately after the fork, the Endpoint says "Repository currently not available".

Granting write permission to a specific user is ok, but registering a Webhook or trying to commit a single Textfile immediately after forking gives me a "Repository currently not available."

If i try the same steps after a while its working, but to complete my task i must be able to do the after-fork-operations immediately.

Any change to prevent this?

Thanks in advance.

1 answer

0 vote

Hi Alex! Forking a repo is not an immediate operation, that's why when you try to access it right after you sent the you'll get the message "Repository currently not available", the repo hasn't been created yet.

You can use the API every few seconds to find out if the repo has already been created and once you get a successful response you can continue with the rest of your operations.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 4 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

35 views 3 3
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you