Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset by peer #134413

Open
Kanecaine opened this issue Jan 1, 2025 · 2 comments
Open

Connection reset by peer #134413

Kanecaine opened this issue Jan 1, 2025 · 2 comments

Comments

@Kanecaine
Copy link

The problem

Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:960
Erstmals aufgetreten: 18:32:06 (2 Vorkommnisse)
Zuletzt protokolliert: 18:32:06

Update for cover.markise fails
Update for light.markise fails
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 1005, in _read_ready__data_received
data = self._sock.recv(self.max_size)
ConnectionResetError: [Errno 104] Connection reset by peer

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/wmspro/entity.py", line 38, in async_update
await self._dest.refresh()
File "/usr/local/lib/python3.13/site-packages/wmspro/destination.py", line 83, in refresh
status = await self._control._getStatus(self._id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/wmspro/webcontrol.py", line 55, in _getStatus
return await self._commonCommand(
^^^^^^^^^^^^^^^^^^^^^^^^^^
WMS_WebControl_pro_API_command_getStatus, destinations=[destinationId]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/wmspro/webcontrol.py", line 43, in _commonCommand
async with self._session.post(url=self._control, json=data) as response:
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1425, in aenter
self._resp: _RetType = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 730, in _request
await resp.start(conn)
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1059, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 671, in read
await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer

What version of Home Assistant Core has the issue?

core-2024.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

WMS WebControl pro

Link to integration documentation on our website

https://www.home-assistant.io/integrations/wmspro

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

This may occur as a result of #133832

I often see both errors one after the other in the logs. Otherwise, I can rule out network problems because the problems occur too frequently and my network shows no other abnormalities.

@home-assistant
Copy link

home-assistant bot commented Jan 1, 2025

Hey there @mback2k, mind taking a look at this issue as it has been labeled with an integration (wmspro) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of wmspro can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign wmspro Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


wmspro documentation
wmspro source
(message by IssueLinks)

@mback2k
Copy link
Contributor

mback2k commented Jan 1, 2025

Probably a follow-up issue of #133832 and #134411, but yeah, error handling needs to improve here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants