I am getting 429 Rate limit for this resource has been exceeded, can anyone help me to understand how I can increase this rate limit . Earlier I have created clients using ussername/password and now I tried with workspace access token but this issue still persists. I thought of downloading the whole directory in memory to avoid doing get calls but it seems there is no such api to download the content recursively from a dirrectory though we have same option from UI.
Hi @Ankit Gupta
This has been reported here, and a possible workaround is to use repository/workspace tokens.
Hi @Ankit Gupta
While the rate limit is not able to be increased (see above comment listing the feature request), each workspace token has a 1,000 request limit so you can create multiple workspace tokens and split the requests across these. Say you needed to send 3,000 requests per hour for example, you could send 1,000 using WorkspaceTokenA, another 1,000 using WorkspaceTokenB and another 1,000 using WorkspaceTokenC.
As for recursive file downloading, this is more a limitation of cURL/wGet, we do have file downloading capabilities in our API so I will share this documentation as well as some external documentation that provides some assistance with working around cURL/wGet limitations:
Hope this helps.
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.
Thanks for the update @Ben , can we use workspace access token to download a directory as zip , or we need to use username:password only, as I tried the api to get as zip using workspace access token is not working but with username:password I was able to do so .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.