[
https://issues.apache.org/jira/browse/AIRFLOW-2402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16463157#comment-16463157
]
Ramki Subramanian commented on AIRFLOW-2402:
--------------------------------------------
I believe the 'read' method of file task handler returns logs and metadatas.
https://github.com/apache/incubator-airflow/blob/master/airflow/utils/log/file_task_handler.py#L168
But in www_rbac/views.py
https://github.com/apache/incubator-airflow/blob/master/airflow/www_rbac/views.py#L447
I believe just by changing like below, things work smooth.
```
logs, metadatas = handler.read(ti)
```
> Airflow 1.10 Logs UI throws oops error
> --------------------------------------
>
> Key: AIRFLOW-2402
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2402
> Project: Apache Airflow
> Issue Type: Bug
> Components: authentication, ui
> Affects Versions: 1.10.0
> Reporter: Ramki Subramanian
> Assignee: Ramki Subramanian
> Priority: Major
> Fix For: 1.10.0
>
>
> Hi,
> I am getting an error at
> [incubator-airflow/airflow/www_rbac/views.py|https://github.com/apache/incubator-airflow/blob/4d64ad4928f0188f7532936e8da6612f5ec7170d/airflow/www_rbac/views.py#L454]
> Line 454 in
> [4d64ad4|https://github.com/apache/incubator-airflow/commit/4d64ad4928f0188f7532936e8da6612f5ec7170d]
> | |logs[i] = log.decode('utf-8')|
>
> {{/home/user/lib/python2.7/site-packages/airflow/www_rbac/views.py", line
> 454, in log logs[i] = log.decode('utf-8') AttributeError: 'list' object has
> no attribute 'decode' }}
> Not sure if someone is already looking into this, or I am missing some config?
> Branch : 1.10_test
> More Info here:
> [https://github.com/apache/incubator-airflow/commit/05e1861e24de42f9a2c649cd93041c5c744504e1#diff-77df5adb32d964f37748c4557ffb3c4c]
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)