atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

Bitbucket repo_users fails with a 429 and is not handled properly

Open paulbehrisch opened this issue 5 years ago • 1 comments

https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bitbucket.py#L168

The return fails when the rate limit on the server was reached and there's no clear indication of what the problem is or what the error was.

I had to fork the project and edit the code to find out what's going on.

I used the following for testing

    resp = self.get(url, params=params)
    print(resp)
    return (resp or {}).get('values')

image

Before my change I was getting this error message: Screen Shot 2020-05-15 at 18 11 45

I'm not across the whole code base, so I'm not sure where would be the best place to add that check.

paulbehrisch avatar May 15 '20 08:05 paulbehrisch

PR #904 might address this

flichtenheld avatar Jan 19 '22 15:01 flichtenheld