I'm using the pybitbucket library to make a pull request.
I get back this response:
pybitbucket.bitbucket.BadRequestError: Attempted to request https://api.bitbucket.org/2.0/repositories/XXXXXXX/pullrequests.Bitbucket considered it a bad request. 400 - {"type": "error", "error": {"fields": {"reviewers": ["Malformed reviewers list"]}, "message": "reviewers: Malformed reviewers list"}}
I used this function to add reviewers (the user names are correct):
The request JSON ends up with structures like: 'reviewers':[{'username':'some_user_name'}]
The server doesn't like that...
If I manually create the request and use the user uuids:
'reviewers':[{'username': '{21321321321312....}'}], that appears to work
However, I can't use that with pybitbucket, because it assumes and enforces that reviewers are specified by user name.
So... who's wrong here? (It's either the server or pybitbucket.)
Hi Michal, welcome to the Community!
I've been trying to reach out to the maintainer of the library, but seems like he's no longer involved.
In the meantime, I'd recommend you to post this question in our Developer Community, where you'll find a broader audience with these type of skills.
Hope that helps,
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.