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

[Bitbucket] Unable to decode the base64 output

Open sheshcode opened this issue 5 months ago • 0 comments

Hi,

I am reading yaml file using bitbucket.get_content_of_file() and it works fine. But when I try base64.decode, it keeps throwing "Incorrect Padding".

I have checked and the total number of characters are multiple of 4 and there are no invalid Base64 characters. When I try to convert the file through some online tool, it gives the content in original yaml.

I can yaml.load() the content but that builds a dictionary instead of yaml, so no go.

Does the get_content_of_file() adds extra characters? Can the get_content_of_file() return data in the format it reads?

Any suggestions regarding solution are very welcome. Thanks.

Regards, Shesh

sheshcode avatar Mar 15 '24 10:03 sheshcode