Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Getting 500 error when repository list exceeds 200 in group_privileges Bitbucket API 1.0


When I issue this call that returns a repository list which exceeds 200 repos, I get an HTTP 500 error.

This is the response I get:

b'{"type": "error", "error": {"message": "Something went wrong", "id": "ca1abe7e9dd646bbbd18b69bb96d7df3"}}'


It's working If the return list is less than 200 repos.

Is there a return limit for this call?  Is there an equivalent "pagelen" parameter than I can use to paginate the return list? Is there a workaround for this? I need to get the list of repositories for each usergroup. Thanks!

1 answer

I get similar issues. It seems like this error pops up whenever the backend takes more than 30 seconds to respond.

API 1.0 has been announced deprecated for multiple years, but there's no 2.0 alternative yet.

For a medium-sized organization, this call quickly returns megabytes of JSON info. Unfortunately, the lack of pagination makes the response sometimes take more than 30 seconds, which results in a 500 response.

Not only does this effectively block access to the endpoint, but it also puts needless strain on both Atlassian's and the client's servers.

When can we expect that the deprecated 1.0 endpoints get their 2.0 counterparts?


Thanks a lot for your time.

Thanks for the clarification. Hopefully, they can provide the 2.0 counterparts soon. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,247 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you