Sriniketh24 commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4483134045

   I'd like to work on this. I've identified the root cause and have a fix 
ready.
   
   **Root cause:** `_LazySafeSerializer.dumps()` uses `msgspec.msgpack` which 
returns `bytes`, but Werkzeug 3.0+ removed the automatic `bytes → str` coercion 
in `dump_cookie()`, causing the `TypeError`.
   
   **Fix approach:** Switch the serializer from `msgspec.msgpack` to 
`msgspec.json` so `dumps()` returns `str`. The `loads()` method tries JSON 
first and falls back to msgpack for backward compatibility with sessions 
written before this change.
   
   Opening a PR shortly with the fix and tests.
   
   ---
   Drafted-by: Claude Code (Opus 4.6) (no human review before posting)


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