Connection pooling corner cases #1
lauri
commented 2022-08-11 14:48:14 +00:00
Owner
```
[2022-08-11 14:46:52 +0000] [1] [ERROR] Exception occurred while handling uri: 'http://mikrotik-exporter:80/metrics?target=sw_asocial.mgmt.k-space.ee%3A8728'
Traceback (most recent call last):
File "handle_request", line 83, in handle_request
from sanic.models.handler_types import ListenerType, MiddlewareType
File "/mikrotik.py", line 196, in view_export
async for line in wrap(scrape_mikrotik(mk)):
File "/mikrotik.py", line 33, in wrap
async for name, tp, value, labels in i:
File "/mikrotik.py", line 44, in scrape_mikrotik
async for obj in mk.query("/interface/print"):
File "/usr/local/lib/python3.10/site-packages/aio_api_ros/connection.py", line 137, in query
self.talk_sentence((path,) + args)
File "/usr/local/lib/python3.10/site-packages/aio_api_ros/connection.py", line 78, in talk_sentence
self.talk_word(word, False)
File "/usr/local/lib/python3.10/site-packages/aio_api_ros/connection.py", line 66, in talk_word
self.writer.write(self._to_bytes(str_value))
File "/usr/local/lib/python3.10/asyncio/streams.py", line 326, in write
self._transport.write(data)
File "uvloop/handles/stream.pyx", line 673, in uvloop.loop.UVStream.write
File "uvloop/handles/handle.pyx", line 159, in uvloop.loop.UVHandle._ensure_alive
RuntimeError: unable to perform operation on <TCPTransport closed=True reading=False 0x7efc1a8c5300>; the handler is closed
```
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?