Notify Service fails on multiple platforms including HTML5, SendGrid, and Slack

I recently transitioned from hassbian to hass.io and so far have just about everything transitioned including smartthings and many others. But for the life of me I cannot get notifications working and I’ve now tried multiple platforms. I was previously using sendgrid and slack. But neither service has been working with hass.io. I even tried setting up HTML5 to see if that might work but also no joy.

I’ve noticed a few odd errors such as I cannot get my Nest thermostat to complete the callback after successfully getting a code. As well as speedtest unable to get a connection. For the life of me I’m not sure what’s going on with these outbound service calls. I’m assuming there is no iptables or other local firewall setting that I may have inadvertently setup while getting everything online?

Below is the notification I receive when attempting to test HTML5 notifications. I’m happy to share any other notifications as well if it might help.

Log Details (ERROR)
Sat Dec 16 2017 18:56:45 GMT-0800 (Pacific Standard Time)

Error doing job: Task exception was never retrieved
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 743, 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 0x71571a90>: 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='android.googleapis.com', port=443): Max retries exceeded with url: /gcm/send (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71571a90>: 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/asyncio/tasks.py", line 181, in _step
    result = coro.throw(exc)
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1031, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/__init__.py", line 143, in async_notify_message
    yield from notify_service.async_send_message(**kwargs)
  File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/notify/html5.py", line 387, in send_message
    json.dumps(payload), gcm_key=self._gcm_key, ttl='86400')
  File "/usr/lib/python3.6/site-packages/pywebpush/__init__.py", line 291, in send
    timeout=timeout)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=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='android.googleapis.com', port=443): Max retries exceeded with url: /gcm/send (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71571a90>: Failed to establish a new connection: [Errno -3] Try again',))

Even Darksky weather is failing to connect.

Log Details (ERROR)
Sat Dec 16 2017 18:55:22 GMT-0800 (Pacific Standard Time)

Unable to connect to Dark Sky. HTTPSConnectionPool(host='api.darksky.net', port=443): Max retries exceeded with url: /forecast/darky_api_key/34.618625,-118.215772?units=us (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x74078910>: Failed to establish a new connection: [Errno -3] Try again',))

Hi Friend,

Im getting very similar issues, all my notification platforms and also darksky…

Have you been able to find anything on this >?

Nobody has anything? :(((

I’m almost at the point I’ll have to try and move all my add ons to a new pi and reinstall everything…

I think it’s a python issue ?
But not sure, and even if it is, not sure how to repair

To anybody who has the same issue, this seems to be finally resolved on the new update (0.61.1)