pyvespa icon indicating copy to clipboard operation
pyvespa copied to clipboard

Queries fail after trying to query, when app was recently deployed.

Open Somebi opened this issue 11 months ago • 2 comments
trafficstars

Queries fail after trying to query, when app was recently deployed.

  File "/home/beck/.local/share/virtualenvs/api-bjhqPKPA/lib/python3.11/site-packages/vespa/application.py", line 316, in query
    return sync_app.query(body=body, groupname=groupname, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/beck/.local/share/virtualenvs/api-bjhqPKPA/lib/python3.11/site-packages/vespa/application.py", line 1236, in query
    raise_for_status(response)
  File "/home/beck/.local/share/virtualenvs/api-bjhqPKPA/lib/python3.11/site-packages/vespa/application.py", line 73, in raise_for_status
    raise VespaError(errors) from http_error
vespa.exceptions.VespaError: [{'code': 10, 'summary': 'Backend communication error', 'source': 'images_content', 'message': 'Connection failure on nodes with distribution-keys: 0'}]

Application deployment finished successfully, but app couldn't query. After some time, restarting app, it managed to query. It seems that there are still some background stuff happening, which is not considered by application deployment.

Somebi avatar Dec 16 '24 13:12 Somebi