serverless-faas-workbench icon indicating copy to clipboard operation
serverless-faas-workbench copied to clipboard

Google "gzip_compression" UnicodeDecodeError

Open arkountos opened this issue 11 months ago • 0 comments

Hello all,

I tried running on an Ubuntu vm the gzip_compression benchmark using functions-framework. I kept getting this error on the gz.writelines(f) line:

File "<frozen codecs>", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in position 3: invalid start byte

After looking around, I got to solve it by opening the file in binary mode, so changing with open(file_write_path) as f: to with open(file_write_path, 'rb') as f:

Now the benchmarks runs, should we add this to the repository?

arkountos avatar Feb 27 '24 13:02 arkountos