Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bitbucket] Unable to decode the base64 output #1350

Open
sheshcode opened this issue Mar 15, 2024 · 0 comments
Open

[Bitbucket] Unable to decode the base64 output #1350

sheshcode opened this issue Mar 15, 2024 · 0 comments

Comments

@sheshcode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant