Vishal487 commented on PR #23338:
URL: https://github.com/apache/airflow/pull/23338#issuecomment-1183003562

   Hey because these attributes are hidden, we are getting AttributeError in 
Airflow-2.3.2.
   
   > 
-------------------------------------------------------------------------------
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line 
2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line 
1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line 
1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/_compat.py", 
line 39, in reraise
       raise value
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line 
1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.9/site-packages/flask/app.py", line 
1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/auth.py", line 
43, in decorated
       return func(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/decorators.py", 
line 80, in wrapper
       return f(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/session.py", 
line 71, in wrapper
       return func(*args, session=session, **kwargs)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/www/views.py", line 
1579, in redirect_to_external_log
       url = handler.get_external_log_url(ti, try_number)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/elasticsearch/log/es_task_handler.py",
 line 374, in get_external_log_url
       log_id = self._render_log_id(task_instance, try_number)
     File 
"/home/airflow/.local/lib/python3.9/site-packages/airflow/providers/elasticsearch/log/es_task_handler.py",
 line 107, in _render_log_id
       dag = ti.task.dag
   AttributeError: 'TaskInstance' object has no attribute 'task'


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to