airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1867) sendgrid fails on python3 with attachments
Date Sun, 02 Sep 2018 18:08:03 GMT

    [ https://issues.apache.org/jira/browse/AIRFLOW-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601600#comment-16601600
] 

Apache Spark commented on AIRFLOW-1867:
---------------------------------------

User 'thesquelched' has created a pull request for this issue:
https://github.com/apache/incubator-airflow/pull/2824

> sendgrid fails on python3 with attachments
> ------------------------------------------
>
>                 Key: AIRFLOW-1867
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1867
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Scott Kruger
>            Priority: Minor
>
> Sendgrid emails raise an exception on python 3 when attaching files due to {{base64.b64encode}}
returning {{bytes}} rather than {{unicode/string}} (see: https://github.com/apache/incubator-airflow/blob/master/airflow/contrib/utils/sendgrid.py#L69).
 The fix is simple: decode the base64 data to `utf-8`.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message