You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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: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?
The text was updated successfully, but these errors were encountered: