Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Bad Handshake error when connecting to mabbox.bytel.fr #8

Open
spawnrider opened this issue Mar 2, 2020 · 0 comments
Open

SSL Bad Handshake error when connecting to mabbox.bytel.fr #8

spawnrider opened this issue Mar 2, 2020 · 0 comments

Comments

@spawnrider
Copy link

I am facing an issue with the bbox component

Home Assistant release (hass --version):
Home Assistant 0.106.1

Python release (python3 --version):
Python 3.7.3

Component/platform:
bbox / Raspberry PI 4B 4Go

Description of problem:
Issue with the certificate when requesting the API.

Expected:
bbox component working as designed in https://www.home-assistant.io/integrations/bbox/

Problem-relevant configuration.yaml entries and steps to reproduce:

device_tracker:
  - platform: bbox

sensor:
  - platform: bbox
    monitored_variables:
      - down_max_bandwidth
      - up_max_bandwidth
      - current_down_bandwidth
      - current_up_bandwidth
      - uptime
      - number_of_reboots
  1. Configure the plugin
  2. Restart HA
  3. See logs below

Traceback (if applicable):

Mar  2 01:02:08 domotique hass[374]: During handling of the above exception, another exception occurred:
Mar  2 01:02:08 domotique hass[374]: Traceback (most recent call last):
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/device_tracker/setup.py", line 64, in async_setup_legacy
Mar  2 01:02:08 domotique hass[374]:     self.platform.get_scanner, hass, {DOMAIN: self.config}
Mar  2 01:02:08 domotique hass[374]:   File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
Mar  2 01:02:08 domotique hass[374]:     result = self.fn(*self.args, **self.kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/bbox/device_tracker.py", line 33, in get_scanner
Mar  2 01:02:08 domotique hass[374]:     scanner = BboxDeviceScanner(config[DOMAIN])
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/bbox/device_tracker.py", line 52, in __init__
Mar  2 01:02:08 domotique hass[374]:     self.success_init = self._update_info()
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
Mar  2 01:02:08 domotique hass[374]:     result = method(*args, **kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/bbox/device_tracker.py", line 80, in _update_info
Mar  2 01:02:08 domotique hass[374]:     result = box.get_all_connected_devices()
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/pybbox/__init__.py", line 112, in get_all_connected_devices
Mar  2 01:02:08 domotique hass[374]:     resp = api.execute_api_request()
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/pybbox/bboxApiCall.py", line 48, in execute_api_request
Mar  2 01:02:08 domotique hass[374]:     resp = self.call_method(self.api_url.get_url())
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/api.py", line 75, in get
Mar  2 01:02:08 domotique hass[374]:     return request('get', url, params=params, **kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/api.py", line 60, in request
Mar  2 01:02:08 domotique hass[374]:     return session.request(method=method, url=url, **kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
Mar  2 01:02:08 domotique hass[374]:     resp = self.send(prep, **send_kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 668, in send
Mar  2 01:02:08 domotique hass[374]:     history = [resp for resp in gen] if allow_redirects else []
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 668, in <listcomp>
Mar  2 01:02:08 domotique hass[374]:     history = [resp for resp in gen] if allow_redirects else []
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 247, in resolve_redirects
Mar  2 01:02:08 domotique hass[374]:     **adapter_kwargs
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
Mar  2 01:02:08 domotique hass[374]:     r = adapter.send(request, **kwargs)
Mar  2 01:02:08 domotique hass[374]:   File "/srv/homeassistant/lib/python3.7/site-packages/requests/adapters.py", line 514, in send
Mar  2 01:02:08 domotique hass[374]:     raise SSLError(e, request=request)
Mar  2 01:02:08 domotique hass[374]: requests.exceptions.SSLError: HTTPSConnectionPool(host='mabbox.bytel.fr', port=443): Max retries exceeded with url: /api/v1/hosts (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_ske_dhe', 'dh key too small')])")))#033[0m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant