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

ValueError: count must be a positive integer (got 0) #52796

Closed
pdobrien3 opened this issue Jul 9, 2021 · 1 comment
Closed

ValueError: count must be a positive integer (got 0) #52796

pdobrien3 opened this issue Jul 9, 2021 · 1 comment
Labels

Comments

@pdobrien3
Copy link

The problem

Look similar to:
aio-libs/aiohttp#5124

What is version of Home Assistant Core has the issue?

core-2021.7.1

What was the last working version of Home Assistant Core?

core-2021.6

What type of installation are you running?

Home Assistant Container

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 485, in start
    resp, reset = await task
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 440, in _handle_request
    reset = await self.finish_response(request, resp, start_time)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 591, in finish_response
    await prepare_meth(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_fileresponse.py", line 241, in prepare
    return await self._sendfile(request, fobj, offset, count)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_fileresponse.py", line 96, in _sendfile
    await loop.sendfile(transport, fobj, offset, count)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1151, in sendfile
    return await self._sendfile_native(transport, file,
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 586, in _sendfile_native
    return await self.sock_sendfile(transp._sock, file, offset, count,
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 867, in sock_sendfile
    self._check_sendfile_params(sock, file, offset, count)
  File "/usr/local/lib/python3.9/asyncio/base_events.py", line 920, in _check_sendfile_params
    raise ValueError(
ValueError: count must be a positive integer (got 0)

Additional information

No response

@AbeltjeNL
Copy link

Same here. Also present in 2021.6.6.

@github-actions github-actions bot added the stale label Aug 10, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants