pallets-eco / flask-session

Server side session extension for Flask
https://flask-session.readthedocs.io
BSD 3-Clause "New" or "Revised" License
490 stars 236 forks source link

sessions.py", line 164, in save_session TypeError: cannot use a string pattern on a bytes-like object #200

Closed devegowdatm closed 7 months ago

devegowdatm commented 7 months ago

https://github.com/pallets-eco/flask-session/blob/09094d30cfa1aace46f93a192260940bf95cf97b/src/flask_session/sessions.py#L164 getting error session.sid should be string but its bytes like object when use_signer=True app.session_interface = RedisSessionInterface( app.cache, key_prefix=app.config.get('SESSION_CACHE_KEY_PREFIX', 'session:'), use_signer=True, permanent=app.config.get("SESSION_PERMANENT", True) ) version 0.5.0

Lxstr commented 7 months ago

Thanks for the issue, this is duplicate. Currently fixing