WolfgangFahl / snapquery

Frontend to Introduce Named Queries and Named Query Middleware to wikidata
Apache License 2.0
4 stars 1 forks source link

nicegui startup timeout for nominate #31

Open WolfgangFahl opened 3 months ago

WolfgangFahl commented 3 months ago
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/nicegui/background_tasks.py", line 52, in _handle_task_result
    task.result()
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/nicegui/page.py", line 112, in wait_for_result
    return await result
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/snapquery/snapquery_webserver.py", line 66, in nominate
    return await self.page(client, SnapQuerySolution.nominate_ui)
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/ngwidgets/webserver.py", line 158, in page
    await solution_instance.prepare()
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/ngwidgets/webserver.py", line 262, in prepare
    await self.client.connected(timeout=timeout)
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/nicegui/client.py", line 163, in connected
    raise TimeoutError(f'No connection after {timeout} seconds')
TimeoutError: No connection after 3.0 seconds
Exception in callback <function page.__call__.<locals>.check_for_late_return_value at 0x7f36d4a0c700>
handle: <Handle page.__call__.<locals>.check_for_late_return_value>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 63, in uvloop.loop.Handle._run
  File "/home/wf/source/python/snapquery/.venv/lib/python3.10/site-packages/nicegui/page.py", line 97, in check_for_late_return_value
    if task.result() is not None:
TimeoutError: No connection after 3.0 seconds