Skip to content

Bitbucket repo_users fails with a 429 and is not handled properly #502

Closed
@paulbehrisch

Description

@paulbehrisch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions