Issues while login to Cloud

I am getting unknown error while trying to login to cloud. Here is the log output. HomeAssistant Version 0.67.1. I had issues inearlier versions also.

    Wed Apr 25 2018 21:57:54 GMT-0500 (Central Daylight Time)

    Error handling request
    Traceback (most recent call last):
      File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 381, in start
        resp = await self._request_handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 322, in _handle
        resp = await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 88, in impl
        return await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 68, in staticresource_middleware
        return await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 27, in real_ip_middleware
        return await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
        return await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 52, in auth_middleware
        return await handler(request)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 104, in handle
        result = await result
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 45, in error_handler
        result = await handler(view, request, *args, **kwargs)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/data_validator.py", line 47, in wrapper
        result = await method(view, request, *args, **kwargs)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 102, in post
        data['password'])
      File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
        yield self  # This tells Task to wait for completion.
      File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
        future.result()
      File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
        raise self._exception
      File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
        result = self.fn(*self.args, **self.kwargs)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 91, in login
        cognito = _authenticate(cloud, email, password)
      File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 126, in _authenticate
        cognito.authenticate(password=password)
      File "/srv/homeassistant/lib/python3.5/site-packages/warrant/__init__.py", line 383, in authenticate
        self.verify_token(tokens['AuthenticationResult']['IdToken'],'id_token','id')
      File "/srv/homeassistant/lib/python3.5/site-packages/warrant/__init__.py", line 197, in verify_token
        kid = jwt.get_unverified_header(token).get('kid')
    AttributeError: module 'jose.jwt' has no attribute 'get_unverified_header'

Hello @Saurabh_Sharma
Did you solve it?
I have the exact same error and didn’t find any

HomeAssistant Version 0.73.1

Any help appreciated

No. I am still getting the same issue. However, I installed another instance of HA without any customizations and I am able to connect to cloud.
I am not sure what is the root cause. Next weekend I am thinking of copying all customizations to the new instance and see if it still continues to work.

Same happening to me:

2018-07-26 14:38:16 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 378, in start
    resp = await self._request_handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 341, in _handle
    resp = await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 67, in staticresource_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 68, in ban_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 62, in auth_middleware
    return await handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 107, in handle
    result = await result
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 45, in error_handler
    result = await handler(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/data_validator.py", line 47, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/http_api.py", line 102, in post
    data['password'])
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 91, in login
    cognito = _authenticate(cloud, email, password)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/cloud/auth_api.py", line 126, in _authenticate
    cognito.authenticate(password=password)
  File "/srv/homeassistant/lib/python3.5/site-packages/warrant/__init__.py", line 383, in authenticate
    self.verify_token(tokens['AuthenticationResult']['IdToken'],'id_token','id')
  File "/srv/homeassistant/lib/python3.5/site-packages/warrant/__init__.py", line 197, in verify_token
    kid = jwt.get_unverified_header(token).get('kid')
AttributeError: module 'jose.jwt' has no attribute 'get_unverified_header'

@t.srubar
any solution?

No, haven’t find yet.

I made ticket for this problem: https://github.com/home-assistant/home-assistant/issues/16469