You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2019/01/12 13:32:00 UTC
[jira] [Closed] (AIRFLOW-317) Avoid exception when reading logs
from s3.
[ https://issues.apache.org/jira/browse/AIRFLOW-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaxil Naik closed AIRFLOW-317.
------------------------------
Resolution: Implemented
> Avoid exception when reading logs from s3.
> ------------------------------------------
>
> Key: AIRFLOW-317
> URL: https://issues.apache.org/jira/browse/AIRFLOW-317
> Project: Apache Airflow
> Issue Type: Bug
> Components: aws
> Affects Versions: 1.7.1.2, 1.7.1.3
> Reporter: Oleksandr Vilchynskyy
> Assignee: Oleksandr Vilchynskyy
> Priority: Minor
> Labels: patch
>
> There is unneeded decode() method after s3_key.get_contents_as_string(). get_contents_as_string() already returns a string. The problem appears if log file contains non-ascii characters decode() method will raise Exception and log will not be processed.
> Without decode() method it will work as always, but log decoding will be processed to browser.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)