Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Exception while ping #41

@blokhin

Description

@blokhin

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 -

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions