Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Streaming issue in 0.109.6 #21

@mclare

Description

@mclare

Thanks form a different part of the GTA- hope you're staying safe.

Post update to 0.109.6 of Home Assitant, and aiohttp 3.6.2

Recurring error is
raise ValueError('Unsupported body type %r' % type(body))
ValueError: Unsupported body type <class 'coroutine'>
2020-05-08 13:50:37 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 567, in body
self._body = body = payload.PAYLOAD_REGISTRY.get(body)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/payload.py", line 106, in get
raise LookupError()
aiohttp.payload.LookupError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
return await handler(request)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/http/view.py", line 125, in handle
result = await result
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/camera/init.py", line 490, in get
return await self.handle(request, camera)
File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/camera/init.py", line 510, in handle
return web.Response(body=image, content_type=camera.content_type)
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 545, in init
self.body = body
File "/usr/local/lib/python3.7/dist-packages/aiohttp/web_response.py", line 569, in body
raise ValueError('Unsupported body type %r' % type(body))
ValueError: Unsupported body type <class 'coroutine'>
/usr/lib/python3.7/asyncio/base_events.py:1756: RuntimeWarning: coroutine 'KunaCamera.camera_image' was never awaited
handle = self._ready.popleft()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

Metadata

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