danneaves-ee commented on issue #20901:
URL: https://github.com/apache/airflow/issues/20901#issuecomment-1014702809


   @potiuk please look at the code here; 
https://github.com/apache/airflow/blob/main/airflow/providers/google/cloud/transfers/gcs_to_local.py#L142
   
   This is a bug.
   
   You cannot cast `byte` to `str` in this way and successfully decode it 
after. The `str()` method must be supplied with an `encoding` param like this;
   
   ```
   str(file_bytes, encoding='utf-8')
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to