You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/04/04 21:39:11 UTC

[GitHub] [airflow] feluelle commented on issue #5040: [AIRFLOW-3552] Fix encoding issue in ImapAttachmentToS3Operator

feluelle commented on issue #5040: [AIRFLOW-3552] Fix encoding issue in ImapAttachmentToS3Operator
URL: https://github.com/apache/airflow/pull/5040#issuecomment-480073538
 
 
   The actual error was like `'bytes' object has no attribute 'encode'`. 
   
   The attachments returned are of type byte (string) and not an unicode string. So we need to use the `load_bytes` instead of the `load_string` function.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services