You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: default_error_handler: method_access_denied, You do not have access to method "on_keypress" (endpoint=/alarmdecoder, msg_id=None) [in /usr/local/lib/python2.7/dist-packages/socketio/virtsocket.py:51]
I did a little more digging and this is actually due to Flask-login changing the internal session variables it uses to prefix with an underscore starting with version 0.5.0: maxcountryman/flask-login@1d1a3a8. Your solution can work, the smallest possible chance to make it compatible with Flask-login 0.5.0 is to just change 'user_id' to '_user_id'.
I don't know that this is actually a better method, but it works with existing logic. Submitted PR: #97
Hi there.
I have manually setup an raspbian image on a raspberrypi 3 and have most of everything working with a customized version of the docker file.
Unfortunately, the virtual keypad was not working. The symptoms is the same as outlined here https://www.alarmdecoder.com/forums/viewtopic.php?f=3&t=1167&p=4267&hilit=keypad+loading#p4267
Steps to repro:
BUG:
Please Wait Loading...
Root cause
I debugged a bit and found the root cause is
user_id
isNone
in therecv_connect
method which callsadd_acl_method
:https://github.com/nutechsoftware/alarmdecoder-webapp/blob/master/ad2web/decoder.py#L829
I could not find anything which sets the user_id for the session. Perhaps a dependency api changed.
Fix/workaround
I have a fix using
user_is_authenticated(current_user)
instead. Happy to create a real PR if someone can confirm this is the desired approach.The text was updated successfully, but these errors were encountered: