Hello,
after migrating to Bitbucket Cloud and switching to API 2.0 we are having big issues with very slow API calls, especially for repositories with lots of tags.
In order to fetch the tags and filter them, we are using this API call, which very often brings our web server in the timeout: curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28name%20~%20%22tagname%22%29' --user "mycredentials" --header 'Accept: application/json'
If we try to reduce number of tags and consider only ones created in last few days to speed up the process, we try to use: curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/myworkspace/myrepo/refs/tags?q=%28target.date+%3E+%222023-08-10%22%29' --user "mycredentials" --header 'Accept: application/json' which just gives us back "Something went wrong".
I also couldn't find anything in documentation regarding tags on how you can limit number of results or search on anything else different than tag name.
Is there a possibility to restrict number of results/filter based on tag creation date or anything else, which could give us a quick response from API? With API v.1.0 and outside of cloud this operation was pretty fast.
Kind Regards,
Aleks
Hi Aleksandar,
I have opened a support ticket on your behalf as you are a Premium user, please check your email for further correspondence.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.