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

view of binary files #7

Open
giovannipizzi opened this issue Nov 29, 2021 · 1 comment
Open

view of binary files #7

giovannipizzi opened this issue Nov 29, 2021 · 1 comment

Comments

@giovannipizzi
Copy link

Currently, client.view() returns a string with the given file content. Would it be possible to have a binary version of it?
E.g. if I do view of a tar.gz i get

HeaderException: last request: 400 {'description': 'Error on head operation', 'error': "'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte"}: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

More generally (maybe this is not intended for binary files?) it would be important also for text files, in case e.g. they were written in some other non UTF-8 encoding, that would likewise fail

@ekouts
Copy link
Collaborator

ekouts commented Nov 29, 2021

For this I am not sure I can do something in pyfirecrest, since the error is coming from the FirecREST response. I will open an issue there.

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

2 participants