microhuang edited a comment on issue #20966:
URL: https://github.com/apache/airflow/issues/20966#issuecomment-1018170876


   > Thank you for your quick response. You mean catch the exception in the DAG 
definition code? We deployed Airflow using Helm and do not have direct access 
to the code.
   
   Yes. First of all, this error is due to the inconsistent coding content 
output by the task itself. Correcting the task code can avoid this error. 
Secondly, using try-catch or specifying the errors parameter during decoding 
can avoid this error in airflow. You can modify the code here through 
DataVolume mapping, customize your own image, and wait for the next version of 
airflow (if you're not in a hurry). For official docode documentation, please 
refer to: 
https://docs.python.org/3.10/library/stdtypes.html?highlight=decode#bytes.decode
 . 
   Sorry, English is not my native language。


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