Error setting up platform pushbullet

Hi! I get the following error when restarting hass.io (0.64.3) on rspb3: Log Details (ERROR)

Error setting up platform pushbullet

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3.6/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/usr/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x739aed30>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x739aed30>: Failed to establish a new connection: [Errno -3] Try again',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/__init__.py", line 95, in async_setup_platform
    platform.get_service, hass, p_config, discovery_info)
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/pushbullet.py", line 39, in get_service
    pushbullet = PushBullet(config[CONF_API_KEY])
  File "/usr/lib/python3.6/site-packages/pushbullet/pushbullet.py", line 43, in __init__
    self.refresh()
  File "/usr/lib/python3.6/site-packages/pushbullet/pushbullet.py", line 381, in refresh
    self._load_devices()
  File "/usr/lib/python3.6/site-packages/pushbullet/pushbullet.py", line 78, in _load_devices
    resp_dict = self._get_data(self.DEVICES_URL)
  File "/usr/lib/python3.6/site-packages/pushbullet/pushbullet.py", line 64, in _get_data
    resp = self._session.get(url)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x739aed30>: Failed to establish a new connection: [Errno -3] Try again',))

The error is saying you have retried too many times. Does this error occur multiple times or just once?

Post your config, otherwise it’s very hard to debug.

No it occurred a couple of times during the last few days.
The error is not coming up every time I restart the hass.io, but on regular basis. When I restart the host os instead it seems to be not occurring.

resinos version is 1.3 and supervisor 0.96.

config.yaml (2.5 KB)

you need to figure out which pushbullet account has the issue. You also need to figure out what is firing when it occurs. Your config looks correct but your api key could be wrong on one of the accounts.

1 Like

Hi,

having since 0.64.3 the same issue, previous version was working, no change in configuration since update from . 0.64.2.

- name: HomeAssistant_Notification
  platform: pushbullet
  api_key: !secret pushbullet_key

in Automation is used:

  action:
  - alias: NotifUser
    data:
      message: Bewegung Terrasse
      target: email/[email protected]
      title: Bewegung Terrasse
    service: notify.HomeAssistant_Notification

Thx @petro! Got rid of the second pushbullet entry. Looking good so far. Tried restarting the server a couple of times without any problem.

Nice, you should be able to have 2 accounts. You figure out what is wrong with the second account?

Actually, I was using just one account (same API) with two different names for several automations. Wasn’t an issue until now, but it didn’t make sense anyway.

in 0.63 they made a bulk change to unique_id’s under the hood. I bet it was running into issues with the unique_id. You may have configured 2 but only had 1 because HA filtered out the second due to the same API key.