view of binary files
giovannipizzi opened this issue · 1 comments
giovannipizzi commented
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 commented
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.