acroos commented on pull request #4474:
URL: https://github.com/apache/airflow/pull/4474#issuecomment-621147767


   This actually introduces a bug when using the `json-file` log driver.  The 
[pull 
method](https://docker-py.readthedocs.io/en/stable/api.html#docker.api.image.ImageApiMixin.pull)
 on `APIClient` returns a generator, which in this case returns `dict`s. The 
result is the following error:
   ```
   [2020-04-29 11:14:59,010] {taskinstance.py:1145} ERROR - 'dict' object has 
no attribute 'decode'
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.7/site-packages/airflow/models/taskinstance.py", line 
983, in _run_raw_task
       result = task_copy.execute(context=context)
     File 
"/usr/local/lib/python3.7/site-packages/airflow/operators/docker_operator.py", 
line 269, in execute
       output = json.loads(l.decode('utf-8').strip())
   AttributeError: 'dict' object has no attribute 'decode'
   ```


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to