You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TRAPI2.0 branch code doesn't work with stream_progress=false #2930
when the stream_progress field of the request is set to false (which is the default setting). The following uncaught error occurs leading to a 500 status code back to the client:
Traceback (most recent call last):
File "/mnt/data/orangeboard/beta/RTX/code/ARAX/ARAXQuery/ARAX_query.py",
line 805, in execute_processing_plan
expander.apply(response, action['parameters'], mode=mode)
File "/mnt/data/orangeboard/beta/RTX/code/ARAX/ARAXQuery/ARAX_expander.py",
line 456, in apply
kp_answers = loop.run_until_complete(task_group)
File "/usr/lib/python3.12/asyncio/base_events.py",
line 663, in run_until_complete
self._check_running()
File "/usr/lib/python3.12/asyncio/base_events.py",
line 624, in _check_running
raise RuntimeError(
RuntimeError: Cannot run the event loop while another loop is running
If instead the above request is POSTed to the same API with stream_progress=true, the response is a 200:
{"timestamp": "2026-10-21 03:36:48.547331", "level": "INFO", "code": "", "message": "Processing is complete. Transmitting resulting Message back t
o client."}
Activity
saramsey commentedon Oct 21, 2026
I've managed to reproduce this bug with the FastAPI application server running locally on my MBP (macOS 27.0.1).
#2930
saramsey commentedon Oct 21, 2026
Commit 08f4b5f confirmed to fix it, on my MBP.
saramsey commentedon Oct 21, 2026
Assigning to @hodgesf for further testing on
arax.ncats.iohodgesf commentedon Oct 21, 2026
I deployed the fix on arax.ncats.io/beta and then tested it via the command line with curl and got a response.
OK to close?
edeutsch commentedon Oct 21, 2026
I think so, thanks!