dify/api/controllers/console/socketio
GareArc 4c84c5957d
fix: run user_connect authorization inside Flask app context
Socket.IO event handlers run in plain gevent greenlets without a Flask
application context, so the db.session() call added in #38227 raises
RuntimeError: Working outside of application context, and every
user_connect is rejected as unauthorized. Wrap the authorization call in
sio.app.app_context(), matching the existing connect handler.
2026-07-08 21:57:07 -07:00
..
__init__.py feat: collaboration (#30781) 2026-04-16 02:21:04 +00:00
workflow.py fix: run user_connect authorization inside Flask app context 2026-07-08 21:57:07 -07:00