error on http protocol
mm3906078 opened this issue · 0 comments
mm3906078 commented
Hi there
I have a problem with protocol=http
, I get this error every time:
2023-05-11 07:58:56 [FALCON] [ERROR] GET /arista?modules=tcam&modules=port&target=10.0.1.1 => Traceback (most recent call last):
File "falcon/app.py", line 365, in falcon.app.App.__call__
File "/tmp/arista-eos-exporter-1.2.0/handler.py", line 60, in on_get
collected_metric = generate_latest(registry)
File "/tmp/arista-eos-exporter-1.2.0/.venv/lib/python3.10/site-packages/prometheus_client/exposition.py", line 198, in generate_latest
for metric in registry.collect():
File "/tmp/arista-eos-exporter-1.2.0/collector.py", line 446, in collect
self._get_labels()
File "/tmp/arista-eos-exporter-1.2.0/collector.py", line 93, in _get_labels
switch_info = self.switch_command("show version")
File "/tmp/arista-eos-exporter-1.2.0/collector.py", line 72, in switch_command
connection = self.get_connection()
File "/tmp/arista-eos-exporter-1.2.0/collector.py", line 66, in get_connection
self._connection.transport._context.set_ciphers('DEFAULT')
AttributeError: 'HttpConnection' object has no attribute '_context'