Hi, I need to use the Bitbucket API to create Pull requests and am using the Atlassian-python library. But I am running into a 401 error when I run this block of code:
File "/Users/.../Library/Python/3.9/lib/python/site-packages/atlassian/rest_client.py", line 531, in raise_for_status raise HTTPError("Unauthorized (401)", response=response) requests.exceptions.HTTPError: Unauthorized (401) 2024-07-29 17:17:32,390 - INFO - Function returned: Failed to create pull request: Unauthorized (401)
I may be wrong, but to me it seems that the library at https://pypi.org/project/atlassian-python-api/ is for Bitbucket Data Center!
Bitbucket Cloud has a very different REST API, so I'd think that you should check if this Python lib is compatible with it at all.
Yes, you're right I decided to go with the default Bitbucket Cloud Rest API. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.