We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey Miguel, thank you so much for all the work you put into this library. I am using a custom JSON encoder to encode sqlalchemy objects.
from server.models.custom_encoder import JSONEncoder app.json_encoder = JSONEncoder socketio.init_app(app, json=flask.json) @socketio.on("evt") def test_ack(): return Model.query.all() # Dies, and printlines in my custom encoder don't fire. @socketio.on("evt") def test_emit(): emit("response", Model.query.all()) # works, encoder is being used.
Please let me know if you have any ideas - for now I am just doing
return flask.json.dumps(Model.query.all())
The text was updated successfully, but these errors were encountered:
1290c55
Let me know if v2.6.2 addresses this issue for you, or if there are still problems. Thanks!
Sorry, something went wrong.
ensure Flask's json is called with an app context
7aa0611
Fixes #297
Yes fixed. Thanks so much!
miguelgrinberg
No branches or pull requests
Hey Miguel, thank you so much for all the work you put into this library. I am using a custom JSON encoder to encode sqlalchemy objects.
Please let me know if you have any ideas - for now I am just doing
The text was updated successfully, but these errors were encountered: