8000 Session is Closed Error · Issue #126 · zachcheatham/ha-omada · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Session is Closed Error #126

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

Open
shayes83 opened this issue Apr 6, 2025 · 0 comments
Open

Session is Closed Error #126

shayes83 opened this issue Apr 6, 2025 · 0 comments

Comments

@shayes83
Copy link
shayes83 commented Apr 6, 2025

After adding in a new device on the network, and attempting to control whether it is able to connect to the network or not I get a Error message that says "session is closed"

The error log says:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:245
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: April 5, 2025 at 3:49:20 PM (20 occurrences)
Last logged: 9:41:20 AM

[281471533424288] Unexpected exception
[281472445704960] Unexpected exception
[281471535046160] Unexpected exception
[281471561965216] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 245, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 2794, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2837, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/omada/switch.py", line 300, in async_turn_off
await self.entity_description.control_fn(self.controller.api, self._mac, False)
File "/config/custom_components/omada/switch.py", line 55, in block_client_fn
await api.known_clients.async_set_block(mac, not enabled)
File "/config/custom_components/omada/api/known_clients.py", line 11, in async_set_block
await self._request("POST", "/cmd/clients/{}/{}".format(mac, block and "block" or "unblock"))
File "/config/custom_components/omada/api/controller.py", line 166, in _site_request
return await self._controller_request(method, endpoint, params=params, json=json, private=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/omada/api/controller.py", line 184, in _controller_request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
method, url, params=params, json=json, private=private
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/omada/api/controller.py", line 210, in _request
async with self._session.request(
~~~~~~~~~~~~~~~~~~~~~^
method,
^^^^^^^
...<4 lines>...
ssl=self._ssl_context,
^^^^^^^^^^^^^^^^^^^^^^
) as res:
^
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 512, in _request
raise RuntimeError("Session is closed")
RuntimeError: Session is closed

This has happened a couple times with different clients on the network now, not sure why this is happening.... Any ideas would be appreciated!!

SH

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

No branches or pull requests

1 participant
0