raphaelauv opened a new issue, #39306:
URL: https://github.com/apache/airflow/issues/39306

   ### Apache Airflow version
   
   2.9.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I can't access the logs from the airflow-UI of one scpeific task in my DAG 
   
   ```log
   {app.py:1744} ERROR - Exception on 
/api/v1/dags/YYYYYYYY/dagRuns/manual__2024-04-29T07:17:59+00:00/taskInstances/XXXXXXXX/logs/1
 [GET]
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.12/site-packages/flask/app.py", 
line 2529, in wsgi_app
       response = self.full_dispatch_request()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/home/airflow/.local/lib/python3.12/site-packages/flask/app.py", 
line 1825, in full_dispatch_request
       rv = self.handle_user_exception(e)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File "/home/airflow/.local/lib/python3.12/site-packages/flask/app.py", 
line 1823, in full_dispatch_request
       rv = self.dispatch_request()
            ^^^^^^^^^^^^^^^^^^^^^^^
     File "/home/airflow/.local/lib/python3.12/site-packages/flask/app.py", 
line 1799, in dispatch_request
       return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/decorators/decorator.py",
 line 68, in wrapper
       response = function(request)
                  ^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/decorators/uri_parsing.py",
 line 149, in wrapper
       response = function(request)
                  ^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/decorators/validation.py",
 line 399, in wrapper
       return function(request)
              ^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/decorators/response.py",
 line 113, in wrapper
       return _wrapper(request, response)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/decorators/response.py",
 line 90, in _wrapper
       self.operation.api.get_connexion_response(response, self.mimetype)
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/apis/abstract.py", 
line 366, in get_connexion_response
       return cls._framework_to_connexion_response(response=response, 
mimetype=mimetype)
              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/connexion/apis/flask_api.py",
 line 165, in _framework_to_connexion_response
       body=response.get_data() if not response.direct_passthrough else None,
            ^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/werkzeug/wrappers/response.py",
 line 314, in get_data
       self._ensure_sequence()
     File 
"/home/airflow/.local/lib/python3.12/site-packages/werkzeug/wrappers/response.py",
 line 376, in _ensure_sequence
       self.make_sequence()
     File 
"/home/airflow/.local/lib/python3.12/site-packages/werkzeug/wrappers/response.py",
 line 391, in make_sequence
       self.response = list(self.iter_encoded())
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/werkzeug/wrappers/response.py",
 line 50, in _iter_encoded
       for item in iterable:
     File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/log_reader.py",
 line 87, in read_log_stream
       logs, metadata = self.read_log_chunks(ti, current_try_number, metadata)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/log_reader.py",
 line 64, in read_log_chunks
       logs, metadatas = self.log_handler.read(ti, try_number, 
metadata=metadata)
                         
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/file_task_handler.py",
 line 451, in read
       log, out_metadata = self._read(task_instance, try_number_element, 
metadata)
                           
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/file_task_handler.py",
 line 374, in _read
       logs = "\n".join(
              ^^^^^^^^^^
     File 
"/home/airflow/.local/lib/python3.12/site-packages/airflow/utils/log/file_task_handler.py",
 line 129, in _interleave_logs
       for _, _, v in sorted(
                      ^^^^^^^
   TypeError: '<' not supported between instances of 'Interval' and 'DateTime'
   ```
   
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   I don't know how to reproduce precisely this bug
   
   ### Operating System
   
   ---
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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