You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jarek Potiuk (Jira)" <ji...@apache.org> on 2020/01/28 14:25:00 UTC

[jira] [Resolved] (AIRFLOW-6627) Email with incorrect DAG not delivered

     [ https://issues.apache.org/jira/browse/AIRFLOW-6627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Potiuk resolved AIRFLOW-6627.
-----------------------------------
    Resolution: Fixed

> Email with incorrect DAG not delivered
> --------------------------------------
>
>                 Key: AIRFLOW-6627
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6627
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: models
>    Affects Versions: 1.10.7
>            Reporter: Jakub Guzik
>            Priority: Minor
>             Fix For: 1.10.8
>
>
> The task that was released was done incorrectly. I did not receive a notification because an error occurred:
>  
> {{During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1121, in handle_failure
>     self.email_alert(error)
>   File "/usr/local/lib/python3.6/site-packages/airflow/models/taskinstance.py", line 1357, in email_alert
>     send_email(self.task.email, subject, html_content)
>   File "/usr/local/lib/python3.6/site-packages/airflow/utils/email.py", line 60, in send_email
>     mime_subtype=mime_subtype, mime_charset=mime_charset, **kwargs)
>   File "/usr/local/lib/python3.6/site-packages/airflow/utils/email.py", line 92, in send_email_smtp
>     mime_text = MIMEText(html_content, 'html', mime_charset)
>   File "/usr/lib64/python3.6/email/mime/text.py", line 42, in __init__
>     self.set_payload(_text, _charset)
>   File "/usr/lib64/python3.6/email/message.py", line 315, in set_payload
>     payload = payload.encode(charset.output_charset)
> UnicodeEncodeError: 'ascii' codec can't encode character '\u200b' in position 2371772: ordinal not in range(128)}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)