这是indexloc提供的服务,不要输入任何密码
Skip to content

error with aiohttp.server #149426

@Grip

Description

@Grip

The problem

Hi,
it's a few time that in my logs I see these messages

Logger: aiohttp.server
Source: /usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py:481
First occurred: 1:02:09 PM (57 occurrences)
Last logged: 1:30:36 PM

Error handling request from 172.30.32.2
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_protocol.py", line 510, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 86, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 41, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 75, in handle
    result = handler(request, **request.match_info)
  File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 228, in get
    body=b"".join((b"[", b",".join(states), b"]")),
                         ~~~~~~~~~^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 219, in <genexpr>
    states = (state.as_dict_json for state in hass.states.async_all())
              ^^^^^^^^^^^^^^^^^^
  File "src/propcache/_helpers_c.pyx", line 33, in propcache._helpers_c.under_cached_property.__get__
  File "/usr/src/homeassistant/homeassistant/core.py", line 1906, in as_dict_json
    return json_bytes(self._as_dict)
TypeError: Integer exceeds 64-bit range

and since I have some troubles with an integration I'd like to know how to clear them for good

Regards

What version of Home Assistant Core has the issue?

core-2025.7.3

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

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions