reflex-dev / reflex

🕸️ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
20.49k stars 1.18k forks source link

raise StateSerializationError if the state cannot be serialized #4453

Open benedikt-bartscher opened 2 days ago

benedikt-bartscher commented 2 days ago

Ignored errors during state serialize causing errors during deserialize this can be hard to debug

Task exception was never retrieved
future: <Task finished name='Task-341' coro=<AsyncServer._handle_event_internal() done, defined at /app/.venv/lib/python3.13/site-packages/socketio/async_server.py:608> exception=EOFError('Ran out of input')>

if needed, I can make this an optional check which can be enabled via env