10
0

Connection pooling corner cases #1

Open
opened 2022-08-11 14:48:14 +00:00 by lauri · 0 comments
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
``` [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 ```
This repo is archived. You cannot comment on issues.
No Label
greenlit
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: k-space/mikrotik-exporter#1
No description provided.