Details
-
Bug
-
Resolution: Timed out
-
Low
-
11
-
Description
When requesting using Bitbucket API, you will get back:
<ul class="errorlist"><li>project<ul class="errorlist"><li>Select a valid choice. That choice is not one of the available choices.</li></ul></li></ul>This works normally for individual account owned repositories.
Full output:
#!python RonCYJ@RonCYJ-HP MINGW64 ~ $ curl -X PUT -u rchiateam1:<Password> -H "Content-Type: application/json" https://api.bitbucket.org/1.0/repositories/rchiateam1/test -d '{"main_branch": "master"}' #TeamID and API Key % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 175 100 150 100 25 69 11 0:00:02 0:00:02 --:--:-- 76<ul class="errorlist"><li>project<ul class="errorlist"><li>Select a valid choice. That choice is not one of the available choices.</li></ul></li></ul> RonCYJ@RonCYJ-HP MINGW64 ~ $ curl -X PUT -u AannSmMbGdcNKZw38r:<Secret> -H "Content-Type: application/json" https://api.bitbucket.org/1.0/repositories/rchiateam1/test -d '{"main_branch": "master"}' #OAuth % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 25 0 0 100 25 0 11 0:00:02 0:00:02 --:--:-- 13 RonCYJ@RonCYJ-HP MINGW64 ~ $ curl -X PUT -u ronaldchia:<Password> -H "Content-Type: application/json" https://api.bitbucket.org/1.0/repositories/rchiateam1/test -d '{"main_branch": "master"}' # Team Admin with App password % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 175 100 150 100 25 72 12 0:00:02 0:00:02 --:--:-- 80<ul class="errorlist"><li>project<ul class="errorlist"><li>Select a valid choice. That choice is not one of the available choices.</li></ul></li></ul>