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

Ash Berlin-Taylor closed AIRFLOW-1717.
--------------------------------------
    Resolution: Fixed

> AttributeError while clicking on dag on webUI
> ---------------------------------------------
>
>                 Key: AIRFLOW-1717
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1717
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ui
>    Affects Versions: 1.8.0
>            Reporter: Ambrish Bhargava
>            Priority: Major
>
> Simple DAG
> {code}from airflow import DAG
> from airflow.contrib.operators.qubole_operator import QuboleOperator
> from datetime import datetime, timedelta
>  
> # Default args
> default_args = {
>     'owner': 'airflow',
>     'depends_on_past': False,
>     'start_date': datetime(2017, 8, 1),
>     'email': ['airf...@airflow.com'],
>     'email_on_failure': True,
>     'email_on_retry': False,
>     'retries': 1,
>     'retry_delay': timedelta(minutes=5),
> }
>  
> # Dag information
> dag = DAG(
>     'qubole_test',
>     default_args=default_args,
>     schedule_interval='@daily')
>  
> # Actual steps
> hive_cmd = QuboleOperator(
>     command_type='hivecmd',
>     task_id='qubole_show_tables',
>     query='use schema;show tables;',
>     cluster_label='default',
>     qubole_conn_id = 'airflow_qubole',
>     dag=dag){code}
> When I ran this dag on CLI, it worked fine. But when I tried to click the DAG 
> on web UI, I am getting following error:
> {code}Traceback (most recent call last):
>   File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1988, in 
> wsgi_app
>     response = self.full_dispatch_request()
>   File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1641, in 
> full_dispatch_request
>     rv = self.handle_user_exception(e)
>   File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1544, in 
> handle_user_exception
>     reraise(exc_type, exc_value, tb)
>   File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1639, in 
> full_dispatch_request
>     rv = self.dispatch_request()
>   File "/usr/local/lib64/python2.7/site-packages/flask/app.py", line 1625, in 
> dispatch_request
>     return self.view_functions[rule.endpoint](**req.view_args)
>   File "/usr/local/lib/python2.7/site-packages/flask_admin/base.py", line 69, 
> in inner
>     return self._run_view(f, *args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/flask_admin/base.py", line 
> 368, in _run_view
>     return fn(self, *args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/flask_login.py", line 755, in 
> decorated_view
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/airflow/www/utils.py", line 
> 219, in view_func
>     return f(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/airflow/www/utils.py", line 
> 125, in wrapper
>     return f(*args, **kwargs)
>   File "/usr/local/lib/python2.7/site-packages/airflow/www/views.py", line 
> 1229, in tree
>     'children': [recurse_nodes(t, set()) for t in dag.roots],
>   File "/usr/local/lib/python2.7/site-packages/airflow/www/views.py", line 
> 1191, in recurse_nodes
>     if node_count[0] < node_limit or t not in visited]
>   File "/usr/local/lib/python2.7/site-packages/airflow/www/views.py", line 
> 1216, in recurse_nodes
>     for d in dates],
> AttributeError: 'NoneType' object has no attribute 'isoformat'{code}



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

Reply via email to