-
Notifications
You must be signed in to change notification settings - Fork 49
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
AttributeError: 'Request' object has no attribute 'session' #62
Comments
This test was done with sanic version 20.3.0 and sanic_session 0.6.0 |
I have pushed a potential fix for this problem, please review: #63 |
@Paladiamors |
Thanks I've made a fix to use the new ctx mechanism. It seems that updating these libraries with backwards compatability will be important to work with other tools that use the old response["session"] mechanism: |
Closed as the pull request has been merged |
Thank you for your contribution. I will make release ASAP. |
@xen thanks for accepting the change and performing the release |
I used the demo code provided:
And I get the following error:
It seems that this code is expecting a dict like object to set the session data.
The text was updated successfully, but these errors were encountered: