Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

error on http protocol #14

Open
mm3906078 opened this issue May 11, 2023 · 0 comments
Open

error on http protocol #14

mm3906078 opened this issue May 11, 2023 · 0 comments

Comments

@mm3906078
Copy link

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'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant