tilde-lab / metis-client

Metis infrastructure API client in Python
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Exception while ping #41

Open blokhin opened 11 months ago

blokhin commented 11 months ago

Occurs randomly among requests and seemingly does not influence anything.

Task exception was never retrieved
future: <Task finished name='StreamConsumerTask' coro=<MetisStreamNamespace._stream_consumer() done, defined at /usr/local/lib/python3.9/dist-packages/metis_client/namespaces/stream.py:34> exception=MetisException("Unexpected exception for 'http://localhost:3000/v0' with - ")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/metis_client/client.py", line 131, in _request
    result = await self._session.request(method, url, **aio_opts)
  File "/usr/local/lib/python3.9/dist-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/dist-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/usr/local/lib/python3.9/dist-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/metis_client/namespaces/stream.py", line 57, in _stream_consumer
    await self._root.v0.ping()
  File "/usr/local/lib/python3.9/dist-packages/metis_client/namespaces/v0.py", line 29, in ping
    await self._client.request(url=self._base_url, method="HEAD", json={})
  File "/usr/local/lib/python3.9/dist-packages/metis_client/client.py", line 157, in _request
    raise MetisException(
metis_client.exc.MetisException: Unexpected exception for 'http://localhost:3000/v0' with -