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?
It looks like you're new here. Sign in or register to get started.