Skip to content

ConnectionResetError: Cannot write to closing transport #6

Open
@vermut

Description

Logger: custom_components.amc_alarm
Source: helpers/update_coordinator.py:315
integration: AMC Alarm (documentation, issues)
First occurred: September 9, 2024 at 13:09:44 (724 occurrences)
Last logged: 13:15:12
Unexpected error fetching amc_alarm data

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 271, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/amc_alarm/init.py", line 42, in async_wait_for_states
await api.command_get_states()
File "/config/custom_components/amc_alarm/amc_alarm_api/api.py", line 203, in command_get_states
await self._send_message(
File "/config/custom_components/amc_alarm/amc_alarm_api/api.py", line 200, in _send_message
await self._websocket.send_str(payload)
File "/usr/local/lib/python3.12/site-packages/aiohttp/client_ws.py", line 165, in send_str
await self._writer.send(data, binary=False, compress=compress)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 729, in send
await self._send_frame(message, WSMsgType.TEXT, compress)
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 628, in _send_frame
raise ConnectionResetError("Cannot write to closing transport")
ConnectionResetError: Cannot write to closing transport

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions