You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "gavrik (via GitHub)" <gi...@apache.org> on 2026/04/08 20:14:30 UTC

[I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

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

   ### Under which category would you file this issue?
   
   Providers
   
   ### Apache Airflow version
   
   3.2.0
   
   ### What happened and how to reproduce it?
   
   upgrade Airflow to the latest version and can't see the login screen after refresh the login page.
   
   The logs from airflow-webserver
   `
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2529, in wsgi_app
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response = self.full_dispatch_request()
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1826, in full_dispatch_request
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     return self.finalize_request(rv)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: 2026-04-08T20:05:14.198141Z [error    ] Request finalizing failed with an error while handling an error [airflow.providers.fab.www.app] loc=app.py:1852
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2529, in wsgi_app
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response = self.full_dispatch_request()
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1826, in full_dispatch_request
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     return self.finalize_request(rv)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: During handling of the above exception, another exception occurred:
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:05:14 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: 2026-04-08T20:05:14.200423Z [info     ] request finished               [http.access] client_addr=10.250.10.108:49230 duration_us=7844 loc=http_access_log.py:98 method=GET path=/auth/login/ query='next=http%3A%2F%2F172.20.81.200%3A8088%2F' status_code=500
   Apr 08 16:05:14 grafana-sandbox airflow[902886]: 2026-04-08T20:05:14.395195Z [info     ] request finished               [http.access] client_addr=10.250.10.108:49230 duration_us=1682 loc=http_access_log.py:98 method=GET path=/favicon.ico query= status_code=200
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: 2026-04-08T20:06:15.336171Z [error    ] Exception on /login/ [GET]     [airflow.providers.fab.www.app] loc=app.py:1744
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2529, in wsgi_app
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response = self.full_dispatch_request()
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1826, in full_dispatch_request
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     return self.finalize_request(rv)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: 2026-04-08T20:06:15.337481Z [error    ] Request finalizing failed with an error while handling an error [airflow.providers.fab.www.app] loc=app.py:1852
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2529, in wsgi_app
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response = self.full_dispatch_request()
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1826, in full_dispatch_request
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     return self.finalize_request(rv)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: During handling of the above exception, another exception occurred:
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: Traceback (most recent call last):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 1847, in finalize_request
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response = self.process_response(response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/app.py", line 2344, in process_response
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     self.session_interface.save_session(self, ctx.session, response)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/airflow/providers/fab/www/session.py", line 53, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     return super().save_session(*args, **kwargs)
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py", line 411, in save_session
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     response.set_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/sansio/response.py", line 232, in set_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     dump_cookie(
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:   File "/u01/users/airflow/.env/lib64/python3.12/site-packages/werkzeug/http.py", line 1373, in dump_cookie
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:     if not _cookie_no_quote_re.fullmatch(value):
   Apr 08 16:06:15 grafana-sandbox airflow[902886]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   Apr 08 16:06:15 grafana-sandbox airflow[902886]: TypeError: cannot use a string pattern on a bytes-like object
   
   ` 
   
   ### What you think should happen instead?
   
   _No response_
   
   ### Operating System
   
   RHEL 9
   
   ### Deployment
   
   Virtualenv installation
   
   ### Apache Airflow Provider(s)
   
   fab
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-fab-3.6.0
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   _No response_
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### Anything else?
   
   This problem occurs every time when I try refresh the page.
   The airflow.cfg was not touched from previous 3.1 installation.
   
   ### 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: commits-unsubscribe@airflow.apache.org.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4253764456

   I made the investigation and made the changes on flask/session.py library. But I think this is not the place of the fix for airflow fab provider.
   
   the fix in flask/session.py file
   ``` python
           val = self.get_signing_serializer(app).dumps(dict(session))  # type: ignore[union-attr]
           print("# # # # # #")
           print(__file__)
           print(val)
           print(str(val, encoding='utf-8'))
           print("# # # # # #")
           response.set_cookie(
               name,
               #val,
               str(val, encoding='utf-8'),
               expires=expires,
               httponly=httponly,
               domain=domain,
               path=path,
               secure=secure,
               partitioned=partitioned,
               samesite=samesite,
           )
           response.vary.add("Cookie")
   
   ```
   
   The output in web server log
   
   ```shell
   Apr 15 11:39:28 grafana-sandbox airflow[1710451]: # # # # # #
   Apr 15 11:39:28 grafana-sandbox airflow[1710451]: /u01/users/airflow/.env/lib64/python3.12/site-packages/flask/sessions.py
   Apr 15 11:39:28 grafana-sandbox airflow[1710451]: b'hKpfcGVybWFuZW50w6pjc3JmX3Rva2Vu2Sg1ZTJjNGZhZDM0MjVlNzhmNWZhMjljNDQ4ZTVlNjNiZTEyYTI1YjgzpmxvY2FsZaJlbqZfZnJlc2jC.ad-xMA.-oR3pX72SQjYyyDhBNP3CAiFDAM'
   Apr 15 11:39:28 grafana-sandbox airflow[1710451]: hKpfcGVybWFuZW50w6pjc3JmX3Rva2Vu2Sg1ZTJjNGZhZDM0MjVlNzhmNWZhMjljNDQ4ZTVlNjNiZTEyYTI1YjgzpmxvY2FsZaJlbqZfZnJlc2jC.ad-xMA.-oR3pX72SQjYyyDhBNP3CAiFDAM
   Apr 15 11:39:28 grafana-sandbox airflow[1710451]: # # # # # #
   
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4216154768

   cc: @vincbeck 


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4236626678

   Can someone creates a fix for it? Since you have the environment setup, it would be faster if one of you create a fix. 


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4216153992

   Before Werkzeug 3.0 the bytes returned used to be converted to str. From 3.0+ the code was removed. I cannot reproduce this in plain flask. itsdangerous checks for the dumps return value type and if it's str then it decodes the signed value here. Perhaps a similar fix needs to be done for `_LazySafeSerializer` dumps method too.
   
   https://github.com/pallets/itsdangerous/blob/672971d66a2ef9f85151e53283113f33d642dabd/src/itsdangerous/serializer.py#L33-L37
   
   https://github.com/pallets/itsdangerous/blob/672971d66a2ef9f85151e53283113f33d642dabd/src/itsdangerous/serializer.py#L309-L320


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215322092

   checked. The same error I see in the logs -> TypeError: cannot use a string pattern on a bytes-like object
   
   `
   (.env) [airflow@grafana-sandbox ~]$ pip list | grep Flask
   Flask                                    3.1.3
   Flask-JWT-Extended                       4.7.1
   Flask-Limiter                            3.12
   Flask-Login                              0.6.3
   Flask-Session                            0.8.0
   Flask-SQLAlchemy                         3.1.1
   Flask-WTF                                1.2.2
   (.env) [airflow@grafana-sandbox ~]$ pip list | grep -i wer
   flower                                   2.0.1
   Werkzeug                                 3.1.8
   (.env) [airflow@grafana-sandbox ~]$ pip list | grep -i conne
   connexion                                3.3.0
   (.env) [airflow@grafana-sandbox ~]$
   
   `


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4211064028

   https://github.com/pallets-eco/flask-session/pull/189


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "abhinav-phi (via GitHub)" <gi...@apache.org>.
abhinav-phi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-5632042383

   Hi @vincbeck — I went through the full history here (#65376, #65463, #67141, #69368) and believe this is already fixed but the issue was simply never closed.
   
   #66565 (merged 2026-05-08, shipped in `apache-airflow-providers-fab` 3.6.4 per its changelog) removed the `self.serializer = _LazySafeSerializer()` assignment from `SessionExemptMixin.__init__` and kept it only on `AirflowDatabaseSessionInterface`. `AirflowSecureCookieSessionInterface` now uses Flask's default serializer, which returns a `str`, so Werkzeug 3.x `dump_cookie` no longer receives bytes — I confirmed this is still the shape of `providers/fab/src/airflow/providers/fab/www/session.py` on current main. This also preserves what @gavrik found in this thread: `flask_session.sqlalchemy` requires bytes for its `LargeBinary` column, which is why the later attempts (#67141's msgpack-to-JSON switch and #69368's `dumps` change, which @Lee-W flagged as wrong) were at the wrong layer.
   
   Caveat: I verified by reading the code and the released changelog, not with a runtime repro. @ashwani4588 reported testing 3.6.4 successfully, but #69368 was opened in July — so if anyone can still reproduce on fab >= 3.6.4, that deserves a fresh issue with the exact provider version rather than continuing this one. Otherwise, could a maintainer close this so it stops attracting duplicate PRs? Happy to help verify on a concrete 3.6.4+ install if that would help.


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215160924

   Thanks, this could be similar to https://github.com/apache/airflow/issues/64954 . Flask was updated to 3.1.3 3 days ago in below diff but 2026-03-31T10:15:14.301618 is present in https://raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.12.txt which users might be using.
   
   https://github.com/apache/airflow/commit/03394d7bd356403329a58a9ed687080f1c69e427#diff-2c6a8c0570f4cdaaf685a424332c5da054e2a1ee1a43dff65bfdd87f692306d5L43
   
   cc: @potiuk 


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck closed issue #64921: FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object
URL: https://github.com/apache/airflow/issues/64921


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4262453342

   flask-session.sqlalchemy module want byte instead of string in data variable when creating the session for flask application.


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4211061297

   Please add the output of pip freeze and the flask-session and werkzeug version installed.


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "Sriniketh24 (via GitHub)" <gi...@apache.org>.
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215015729

   Constraints file for Airflow 3.2.0 and Python 3.12 requires Flask==3.1.3 but I see Flask==2.2.5 in pip freeze output. Try passing the constraints file during `pip install` to check if the issue occurs again.
   
   https://github.com/apache/airflow/blob/1e4c4a77332a3b71d33ef2a8f568ba9da11f5b2a/constraints-3.12.txt#L43
   
   https://github.com/apache/airflow?tab=readme-ov-file#installing-from-pypi
   
   ```
   pip install 'apache-airflow==3.2.0' \
    --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.12.txt"
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215075609

   constraint file from this link https://[raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.12.txt](https://raw.githubusercontent.com/apache/airflow/constraints-3.2.0/constraints-3.12.txt) contains Flask==2.2.5


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215790382

   Ok, I can reproduce it with fab.SESSION_BACKEND as securecookie. Support to decode bytes as str was removed in werkzeug 3.0
   
   ```
       .. versionchanged:: 3.0
           Passing bytes, and the ``charset`` and ``errors`` parameters, were removed.
   ```
   
   https://github.com/pallets/werkzeug/commit/5ff0a573f4b78d9724f1f063fb058fd6bc76b24d#diff-3134d3f7dc9d159846df01762c3fc67dd518a3b81b86ca172bd57148bc9af9e1


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215039919

   I use the next bash script for install/upgrade airflow
   `
   (.env) [airflow@grafana-sandbox ~]$ cat airflow-upgrade.sh
   AIRFLOW_VERSION=3.2.0
   PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
   echo "Install Airflow for python " ${PYTHON_VERSION}
   CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
   pip install "apache-airflow[celery,postgres,google,oracle,ssh,fab,http,smtp,ftp]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
   
   airflow db migrate
   `
   
   So the constraint file is already there.
   It is interesting situation. Lets me build the fresh venv and install airflow there.


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-5635538876

   Thanks for pointing it out


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4216239612

   Confirm. I use session_backend = securecookie in the fab configuration.


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "gavrik (via GitHub)" <gi...@apache.org>.
gavrik commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4212663392

   `
   (.env) [airflow@grafana-sandbox ~]$ pip freeze
   a2wsgi==1.10.10
   aiofiles==24.1.0
   aiohappyeyeballs==2.6.1
   aiohttp==3.13.3
   aiohttp-cors==0.8.1
   aiosignal==1.4.0
   aiosmtplib==5.1.0
   aiosqlite==0.21.0
   alembic==1.18.4
   amqp==5.3.1
   annotated-doc==0.0.4
   annotated-types==0.7.0
   anyio==4.13.0
   apache-airflow==3.2.0
   apache-airflow-core==3.2.0
   apache-airflow-providers-celery==3.17.1
   apache-airflow-providers-common-compat==1.14.1
   apache-airflow-providers-common-io==1.7.1
   apache-airflow-providers-common-sql==1.33.0
   apache-airflow-providers-fab==3.6.0
   apache-airflow-providers-ftp==3.14.1
   apache-airflow-providers-google==20.0.0
   apache-airflow-providers-http==6.0.0
   apache-airflow-providers-oracle==4.5.1
   apache-airflow-providers-postgres==6.6.1
   apache-airflow-providers-smtp==2.4.3
   apache-airflow-providers-ssh==4.3.2
   apache-airflow-providers-standard==1.12.1
   apache-airflow-task-sdk==1.2.0
   apispec==6.10.0
   argcomplete==3.6.3
   asgiref==3.11.1
   asyncpg==0.31.0
   asyncssh==2.22.0
   attrs==26.1.0
   babel==2.18.0
   backoff==2.2.1
   bcrypt==5.0.0
   billiard==4.2.4
   blinker==1.9.0
   cachelib==0.13.0
   cachetools==6.2.6
   cadwyn==6.1.1
   cattrs==26.1.0
   celery==5.6.3
   certifi==2026.2.25
   cffi==2.0.0
   chardet==6.0.0.post1
   charset-normalizer==3.4.6
   click==8.3.1
   click-didyoumean==0.3.1
   click-plugins==1.1.1.2
   click-repl==0.3.0
   clickclick==20.10.2
   colorama==0.4.6
   colorful==0.5.8
   colorlog==6.10.1
   connexion==3.3.0
   cron_descriptor==2.0.8
   croniter==6.2.2
   cryptography==46.0.6
   db-dtypes==1.5.0
   decorator==5.2.1
   Deprecated==1.3.1
   dill==0.4.1
   distlib==0.4.0
   distro==1.9.0
   dnspython==2.8.0
   docstring_parser==0.17.0
   email-validator==2.3.0
   exceptiongroup==1.3.1
   fastapi==0.135.2
   fastapi-cli==0.0.24
   fastuuid==0.14.0
   filelock==3.25.2
   Flask==2.2.5
   flask-appbuilder==5.2.0
   flask-babel==4.0.0
   Flask-JWT-Extended==4.7.1
   Flask-Limiter==3.12
   Flask-Login==0.6.3
   Flask-Session==0.8.0
   Flask-SQLAlchemy==3.1.1
   Flask-WTF==1.2.2
   flower==2.0.1
   frozenlist==1.8.0
   fsspec==2026.2.0
   gcloud-aio-auth==5.4.4
   gcloud-aio-bigquery==7.1.0
   gcloud-aio-storage==9.6.4
   gcsfs==2026.2.0
   google-ads==30.0.0
   google-analytics-admin==0.27.0
   google-api-core==2.30.0
   google-api-python-client==2.193.0
   google-auth==2.49.1
   google-auth-httplib2==0.3.0
   google-auth-oauthlib==1.3.0
   google-cloud-aiplatform==1.143.0
   google-cloud-alloydb==0.8.0
   google-cloud-appengine-logging==1.8.0
   google-cloud-audit-log==0.4.0
   google-cloud-automl==2.18.1
   google-cloud-batch==0.20.0
   google-cloud-bigquery==3.40.1
   google-cloud-bigquery-datatransfer==3.21.0
   google-cloud-bigquery-storage==2.36.2
   google-cloud-bigtable==2.35.0
   google-cloud-build==3.35.0
   google-cloud-compute==1.46.0
   google-cloud-container==2.63.0
   google-cloud-core==2.5.0
   google-cloud-datacatalog==3.29.0
   google-cloud-dataflow-client==0.11.0
   google-cloud-dataform==0.9.0
   google-cloud-dataplex==2.17.0
   google-cloud-dataproc==5.25.0
   google-cloud-dataproc-metastore==1.21.0
   google-cloud-dlp==3.34.0
   google-cloud-kms==3.12.0
   google-cloud-language==2.20.0
   google-cloud-logging==3.15.0
   google-cloud-managedkafka==0.4.0
   google-cloud-memcache==1.15.0
   google-cloud-monitoring==2.30.0
   google-cloud-orchestration-airflow==1.20.0
   google-cloud-os-login==2.20.0
   google-cloud-pubsub==2.36.0
   google-cloud-redis==2.21.0
   google-cloud-resource-manager==1.17.0
   google-cloud-run==0.16.0
   google-cloud-secret-manager==2.27.0
   google-cloud-spanner==3.63.0
   google-cloud-speech==2.38.0
   google-cloud-storage==3.10.1
   google-cloud-storage-control==1.11.0
   google-cloud-storage-transfer==1.20.0
   google-cloud-tasks==2.22.0
   google-cloud-texttospeech==2.35.0
   google-cloud-translate==3.25.0
   google-cloud-videointelligence==2.19.0
   google-cloud-vision==3.13.0
   google-cloud-workflows==1.21.0
   google-crc32c==1.8.0
   google-genai==1.68.0
   google-resumable-media==2.8.0
   googleapis-common-protos==1.73.1
   greenback==1.3.0
   greenlet==3.3.2
   grpc-google-iam-v1==0.14.3
   grpc-interceptor==0.15.4
   grpcio==1.78.0
   grpcio-gcp==0.2.2
   grpcio-status==1.78.0
   h11==0.16.0
   hf-xet==1.4.2
   httpcore==1.0.9
   httplib2==0.31.2
   httptools==0.7.1
   httpx==0.28.1
   huggingface_hub==1.8.0
   humanize==4.15.0
   idna==3.11
   immutabledict==4.3.1
   importlib_metadata==8.7.1
   inflection==0.5.1
   itsdangerous==2.2.0
   Jinja2==3.1.6
   jiter==0.13.0
   jmespath==0.10.0
   joblib==1.5.3
   jsonschema==4.26.0
   jsonschema-specifications==2025.9.1
   kombu==5.6.2
   lazy-object-proxy==1.12.0
   libcst==1.8.6
   limits==5.8.0
   linkify-it-py==2.1.0
   litellm==1.82.6
   lockfile==0.12.2
   looker_sdk==26.6.1
   madoka==0.7.1
   Mako==1.3.10
   markdown-it-py==4.0.0
   MarkupSafe==3.0.3
   marshmallow==3.26.2
   marshmallow-sqlalchemy==1.4.2
   mdurl==0.1.2
   methodtools==0.4.7
   mmh3==5.2.1
   more-itertools==10.8.0
   msgpack==1.1.2
   msgspec==0.20.0
   multidict==6.7.1
   natsort==8.4.0
   numpy==2.4.3
   oauthlib==3.3.1
   openai==2.30.0
   opencensus==0.11.4
   opencensus-context==0.1.3
   opentelemetry-api==1.40.0
   opentelemetry-exporter-otlp==1.40.0
   opentelemetry-exporter-otlp-proto-common==1.40.0
   opentelemetry-exporter-otlp-proto-grpc==1.40.0
   opentelemetry-exporter-otlp-proto-http==1.40.0
   opentelemetry-exporter-prometheus==0.61b0
   opentelemetry-proto==1.40.0
   opentelemetry-resourcedetector-gcp==1.11.0a0
   opentelemetry-sdk==1.40.0
   opentelemetry-semantic-conventions==0.61b0
   oracledb==3.4.2
   ordered-set==4.1.0
   outcome==1.3.0.post0
   packaging==26.0
   pandas==2.3.3
   pandas-gbq==0.34.1
   paramiko==3.5.1
   pathlib_abc==0.5.2
   pathspec==1.0.4
   pendulum==3.2.0
   pipdeptree==2.34.0
   platformdirs==4.9.4
   pluggy==1.6.0
   pondpond==1.4.1
   prison==0.2.1
   prometheus_client==0.24.1
   prompt_toolkit==3.0.52
   propcache==0.4.1
   proto-plus==1.27.2
   protobuf==6.33.6
   psutil==7.2.2
   psycopg2-binary==2.9.11
   py-spy==0.4.1
   pyarrow==23.0.1
   pyasn1==0.6.3
   pyasn1_modules==0.4.2
   pycparser==3.0
   pydantic==2.12.5
   pydantic-extra-types==2.11.1
   pydantic-settings==2.13.1
   pydantic_core==2.41.5
   pydata-google-auth==1.9.1
   Pygments==2.19.2
   pygtrie==2.5.0
   PyJWT==2.12.1
   PyNaCl==1.6.2
   pyOpenSSL==26.0.0
   pyparsing==3.3.2
   python-daemon==3.1.2
   python-dateutil==2.9.0.post0
   python-discovery==1.2.1
   python-dotenv==1.2.2
   python-multipart==0.0.22
   python-slugify==8.0.4
   pytz==2026.1.post1
   PyYAML==6.0.3
   ray==2.54.1
   redis==6.4.0
   referencing==0.37.0
   regex==2026.2.28
   requests==2.33.0
   requests-oauthlib==2.0.0
   requests-toolbelt==1.0.0
   retryhttp==1.3.3
   rich==13.9.4
   rich-argparse==1.7.2
   rich-toolkit==0.19.7
   rpds-py==0.30.0
   rsa==4.9.1
   ruamel.yaml==0.19.1
   ruamel.yaml.clib==0.2.15
   scikit-learn==1.8.0
   scipy==1.17.1
   setproctitle==1.3.7
   setuptools==82.0.1
   shapely==2.1.2
   shellingham==1.5.4
   six==1.17.0
   smart_open==7.5.1
   sniffio==1.3.1
   SQLAlchemy==2.0.48
   sqlalchemy-bigquery==1.16.0
   SQLAlchemy-JSONField==1.0.2
   sqlalchemy-spanner==1.17.3
   SQLAlchemy-Utils==0.42.1
   sqlparse==0.5.5
   sshtunnel==0.4.0
   starlette==0.52.1
   structlog==25.5.0
   svcs==25.1.0
   tabulate==0.10.0
   tenacity==9.1.4
   termcolor==3.3.0
   text-unidecode==1.3
   threadpoolctl==3.6.0
   tiktoken==0.12.0
   tokenizers==0.22.2
   tornado==6.5.5
   tqdm==4.67.3
   typer==0.24.1
   typer-slim==0.21.1
   types-protobuf==6.32.1.20260221
   types-requests==2.32.4.20250913
   typing-inspection==0.4.2
   typing_extensions==4.15.0
   tzdata==2025.3
   tzlocal==5.3.1
   uc-micro-py==2.0.0
   universal_pathlib==0.3.10
   uritemplate==4.2.0
   urllib3==2.6.3
   uuid6==2025.0.1
   uvicorn==0.42.0
   uvloop==0.22.1
   vine==5.1.0
   virtualenv==21.2.0
   watchfiles==1.1.1
   wcwidth==0.6.0
   websockets==16.0
   Werkzeug==3.1.7
   wirerope==1.0.0
   wrapt==2.1.2
   WTForms==3.2.1
   yarl==1.23.0
   zipp==3.23.0
   
   `


-- 
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: commits-unsubscribe@airflow.apache.org

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


Re: [I] FAB 3.6.0 can't create a cookies. TypeError: cannot use a string pattern on a bytes-like object [airflow]

Posted by "tirkarthi (via GitHub)" <gi...@apache.org>.
tirkarthi commented on issue #64921:
URL: https://github.com/apache/airflow/issues/64921#issuecomment-4215629532

   The next step I can suggest would be to check flask_session and the code is same as 0.8.0 in github with fixes in https://github.com/pallets-eco/flask-session/pull/189/changes . You can have a breakpoint before `response.set_cookie` being called in `save_session` to ensure the value is string being passed to werkzeug.
   
   .env/lib/python3.12/site-packages/flask_session/base.py
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

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