Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session fails because of no secret_key #66

Closed
cereal2nd opened this issue Mar 22, 2017 · 2 comments
Closed

Session fails because of no secret_key #66

cereal2nd opened this issue Mar 22, 2017 · 2 comments

Comments

@cereal2nd
Copy link

When no secret key is set the get_signer returns None but this is not catched.

2017-02-16 19:17:08,522 domogik.admin.application ERROR Request finalizing failed with an error while handling an error Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1632, in finalize_request response = self.process_response(response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1858, in process_response self.save_session(ctx.session, response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 924, in save_session return self.session_interface.save_session(self, session, response) File "/usr/local/lib/python2.7/dist-packages/Flask_Session-0.3.0-py2.7.egg/flask_session/sessions.py", line 357, in save_session session_id = self._get_signer(app).sign(want_bytes(session.sid)) AttributeError: 'NoneType' object has no attribute 'sign'

@fengsp
Copy link
Contributor

fengsp commented Apr 5, 2017

As far as I can see, the session would be one null session and won't be saved, what is your Flask version?

@Lxstr
Copy link
Contributor

Lxstr commented Feb 25, 2024

Null session causing misleading error. Will be fixed from 0.7.0

@Lxstr Lxstr closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants