Skip to content

TimeoutError #221

Description

@richardblythman

SDK output:

pending orchestrator keynesian_beauty_contest
running orchestrator keynesian_beauty_contest
running orchestrator keynesian_beauty_contest
running orchestrator keynesian_beauty_contest
running orchestrator keynesian_beauty_contest
error orchestrator keynesian_beauty_contest
Error in _run_module_async:

celeryworker logs:

Traceback (most recent call last):
  File "/Users/richardblythman/code/node/node/worker/package_worker.py", line 128, in _run_module_async
    await module_run_engine.start_run()
  File "/Users/richardblythman/code/node/node/worker/package_worker.py", line 331, in start_run
    response = await loader.load_and_run(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/worker/package_worker.py", line 258, in load_and_run
    result = await run_func(module_run=module_run_dict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/keynesian_beauty_contest/run.py", line 65, in run
    results = await beauty_contest.run_beauty_contest(module_run, *args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/keynesian_beauty_contest/run.py", line 49, in run_beauty_contest
    results = await asyncio.gather(*tasks)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/.venv/lib/python3.12/site-packages/naptha_sdk/modules/agent.py", line 17, in run
    agent_run = await node.run_module(module_type="agent", run_input=module_run_input)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/.venv/lib/python3.12/site-packages/naptha_sdk/client/node.py", line 98, in run_module
    return await self.run_module_ws(module_type, run_input)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/.venv/lib/python3.12/site-packages/naptha_sdk/client/node.py", line 107, in run_module_ws
    response = await self.send_receive_ws(run_input_dict, f"{module_type}/run")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/.venv/lib/python3.12/site-packages/naptha_sdk/client/node.py", line 235, in send_receive_ws
    client_id = await self.connect_ws(action)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/node/storage/hub/modules/keynesian_beauty_contest/.venv/lib/python3.12/site-packages/naptha_sdk/client/node.py", line 222, in connect_ws
    ws = await websockets.connect(full_url)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/richardblythman/code/node/.venv/lib/python3.12/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.9/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions