Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

BitBucket: fetching pull request lists returns dubious results intermittently

neomatrix369 June 30, 2019 edited

Can someone please clarify the below for me, or confirm if you have faced something like this before or seen someone else report it?

In the last week or so, I have noticed that making this call:

https://api.bitbucket.org/2.0/repositories/${userName}/${repoName}/pullrequests?state=${state}"

results in one of the two:

- An error that this API does not exists check docs (not the exact error message but around the lines): 

{"type":"error","error":
{"detail":"There is no API hosted at this URL.\n\n
For information about our API's, please refer to the documentation at:
https://developer.atlassian.com/bitbucket/api/2/reference/",
"message":"Resource not found"}}

- an old pull request with an old date/time in the results but marked as OPEN, while there are no Pull requests for that branch (as visible by the Bitbucket GUI)

I'm now logging such results as a warning to capture the situation and report back.

This might be related to the earlier reported issue:  https://community.atlassian.com/t5/Bitbucket-questions/BitBucket-changes-made-via-REST-API-calls-are-eventually/qaq-p/1116541

 

I'm happy to provide further details if this could be used to debug the issue and rectify it.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events