Hangouts issue - Session is closed

Hi all,

I have an issue with hangouts “RuntimeError: Session is closed” when sending hangouts message.
I have HA 0.84.5, Synology Docker, static IP. I haven’t noticed this behavior in previous versions. Manual hangouts reconnect fixes it temporally. Usually few hours. It happen probably together with temporally internet disconnect. Isnt there any automatic hangout reconnect in such of cases? Thanks.

More details below.
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/automation/init.py”, line 294, in async_trigger
await self._async_action(self.entity_id, variables, context)
File “/usr/src/app/homeassistant/components/automation/init.py”, line 378, in action
await script_obj.async_run(variables, context)
File “/usr/src/app/homeassistant/helpers/script.py”, line 130, in async_run
await self._handle_action(action, variables, context)
File “/usr/src/app/homeassistant/helpers/script.py”, line 172, in _handle_action
action, variables, context)
File “/usr/src/app/homeassistant/helpers/script.py”, line 261, in _async_call_service
context=context
File “/usr/src/app/homeassistant/helpers/service.py”, line 81, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File “/usr/src/app/homeassistant/core.py”, line 1121, in async_call
self._execute_service(handler, service_call))
File “/usr/src/app/homeassistant/core.py”, line 1143, in _execute_service
await handler.func(service_call)
File “/usr/src/app/homeassistant/components/hangouts/hangouts_bot.py”, line 310, in async_handle_send_message
service.data.get(ATTR_DATA, {}))
File “/usr/src/app/homeassistant/components/hangouts/hangouts_bot.py”, line 284, in _async_send_message
await conv.send_message(messages, image_file)
File “/usr/local/lib/python3.6/site-packages/hangups/conversation.py”, line 439, in send_message
await self._client.send_chat_message(request)
File “/usr/local/lib/python3.6/site-packages/hangups/client.py”, line 591, in send_chat_message
send_chat_message_request, response)
File “/usr/local/lib/python3.6/site-packages/hangups/client.py”, line 417, in _pb_request
request_pb.SerializeToString()
File “/usr/local/lib/python3.6/site-packages/hangups/client.py”, line 470, in _base_request
‘post’, url, headers=headers, params=params, data=data,
File “/usr/local/lib/python3.6/site-packages/hangups/http_utils.py”, line 64, in fetch
headers=headers, data=data) as res:
File “/usr/local/lib/python3.6/site-packages/aiohttp/client.py”, line 855, in aenter
self._resp = await self._coro
File “/usr/local/lib/python3.6/site-packages/aiohttp/client.py”, line 254, in _request
raise RuntimeError(‘Session is closed’)

1 Like