o-nikolas commented on PR #27174:
URL: https://github.com/apache/airflow/pull/27174#issuecomment-1291466603

   > Thanks Nikolas. I am very busy for this weekend. I will check on Friday.
   
   No worries, thanks for sticking with it :)
   
   > P.S @o-nikolas Is this problem about character number or write type? I 
don't know.
   > 
   > <img alt="Screen Shot 2022-10-25 at 21 58 33" width="699" 
src="https://user-images.githubusercontent.com/47830986/197859049-9bea0ec0-d212-4c4c-8cfc-44287000a1bf.png";>
   
   This is mypy warning you that at least one of the strings you're formatting 
here is a byte string, and that Python 3 doesn't handle this edge case 
gracefully when formatting with f-strings.
   You can see from the example output in the screenshot you linked in the 
description that the logged output contains the `b` prefix: `... 
b'{"error":...`. calling a `.decode('utf-8')` on the values which are 
bytstrings will likely solve your issue (assuming they're utf-8 encoded).


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