Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Failed to update build status

Jin Wu October 17, 2018

Hi Team,

i'm try to update build status in Bitbucket Cloud, while getting below error:

b'{"type": "error", "error": {"fields": {"state": ["\\"state\\" must be one of set([\'SUCCESSFUL\', \'FAILED\', \'INPROGRESS\', \'STOPPED\'])"]}, "message": "state: \\"state\\" must be one of set([\'SUCCESSFUL\', \'FAILED\', \'INPROGRESS\', \'STOPPED\'])"}}'

 

first, i get json dict by 2.0 REST API url like commit/9c6b706/statuses/build/2922406180584a718e4403c0b0ee95ae

then i put the same json without changing state, and get above error, could you help take a look? thanks!

2 answers

1 accepted

0 votes
Answer accepted
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 18, 2018
Jin Wu October 18, 2018

thanks Tyler. i used "INPROGRESS". the root cause i missed ApplicationType when sending request.

Like Oleksandr Tarabanovskyi likes this
0 votes
Jin Wu October 17, 2018

one more, i also changed state with different one like "INPROGESS", hit the same error.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events