#355·storm

[BUG] UnCaught app Exception

Author: mshafiullah12277Created Apr 16, 2025Updated Jul 24, 2026

Describe the bug 2025-04-16 20:28:14.153 Uncaught app exception Traceback (most recent call last): File "/home/azureuser/storm-env/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script exec(code, module.dict) File "/home/azureuser/storm/frontend/demo_light/storm.py", line 68, in main() File "/home/azureuser/storm/frontend/demo_light/storm.py", line 64, in main CreateNewArticle.create_new_article_page() File "/home/azureuser/storm/frontend/demo_light/pages_util/CreateNewArticle.py", line 163, in create_new_article_page handle_final_writing() File "/home/azureuser/storm/frontend/demo_light/pages_util/CreateNewArticle.py", line 118, in handle_final_writing st.session_state["runner"].post_run() File "/home/azureuser/storm-env/lib/python3.12/site-packages/knowledge_storm/storm_wiki/engine.py", line 310, in post_run f.write(json.dumps(call) + "\n") ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/init.py", line 231, in dumps return _default_encoder.encode(obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 200, in encode chunks = self.iterencode(o, _one_shot=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 258, in iterencode return _iterencode(o, 0) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/encoder.py", line 180, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type Choice is not JSON serializable

To Reproduce Report following things

  1. Input topic name
  2. All output files generated for this topic as a zip file.

Screenshots If applicable, add screenshots to help explain your problem.

Environment:

  • OS: Ubuntu 24
  • Browser Edge / Chrome