-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
TypeError: unhashable type: 'dict' against SID #408
Comments
Can you show me the output of |
Sure, no problem... --local is okay, right?
|
Thanks. That was just so that I can lookup the versions of the packages you were using. Is there anything odd in how your |
Kinda... @socketio.on('save_analytics_view', namespace='/analytics')
@socketio.on('save_analytics_view', namespace='/analytics/summary')
@login_required
def analytics_save_analytics_view(data):
...
Yep... That's exactly what is causing it, actually. :) I commented out the /analytics/summary decorator as seen above, and now it works... If I add two decorators, it seems to break, both receiving, and sending of socket messages by the wrapped methods. The socket.io server receives messages from the client, but they don't get routed to the handlers, and it seems the server thinks it's sending the messages, but they are never received by the client either. This is a trivial fix on my end, it'll just cause a little duplicated code to have one handler for each namespace. |
i forgot about this until now... i believe there are some other bugs floating around here in regards to sid being missing too... hmm. but the way it's used here has nothing to do w/ SIO i think... |
@gordol just pushed version 2.8.4. Please upgrade to that to get this bug fixed (and make sure all the dependencies are also upgraded). |
pip handles dependency upgrades, right? just tested, works great! thanks! |
Any ideas?
The text was updated successfully, but these errors were encountered: