Skip to content

convert csv content file from string to bytes

Derek Yi Yang requested to merge fix-csv-encoding-aws into master

Problem Demo app running asynchronously with file storage in s3 bucket would error out when saving csv file resulting in the error below.

Screen_Shot_2018-04-27_at_3.39.28_PM

Source When report_file is saved, it is a unicode string. Boto3 complains that a unicode object must be encoded.

Solution Encode it into bytes.

Merge request reports