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

Intermittent 500 response with "Internal Server Error" calling pipelines API endpoint

Jay Seletz May 19, 2020

I have a program that uses the REST API to start a pipeline, gets the pipeline build number from the response, and then polls the running pipeline for successful completion by calling this endpoint every 2 seconds:

https://api.bitbucket.org/2.0/repositories/<workspace>/<repo>/pipelines/<buildnumber>?sort=-created_on&target.branch=<branch>

For example:

https://api.bitbucket.org/2.0/repositories/myworkspace/myproject/pipelines/1094?sort=-created_on&target.branch=release%2Fvoice_blending

This generally works, but has been intermittently returning a 500 response code with the body: 

{"type": "error", "error": {"message": "workspace"}}

I am going to implement re-try logic, but this seems to be happening more frequently, is there anything I'm doing wrong or could do to improve the reliability of this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events