core icon indicating copy to clipboard operation
core copied to clipboard

Error when updating WLED firmware, please fix

Open Shredder5262 opened this issue 2 years ago • 3 comments

The problem

See title.

What version of Home Assistant Core has the issue?

core-2023.9.3

What was the last working version of Home Assistant Core?

unknnown

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

Logger: homeassistant.components.websocket_api.http.connection Source: components/wled/helpers.py:37 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 5:30:17 PM (1 occurrences) Last logged: 5:30:17 PM

[140507701035072] Invalid response from WLED API Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read await self._waiter File "/usr/local/lib/python3.11/site-packages/aiohttp/client_proto.py", line 213, in data_received messages, upgraded, tail = self._parser.feed_data(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data aiohttp.http_exceptions.BadHttpMessage: 400, message: Invalid character in chunk size:

b'2a0 \r'
     ^

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

Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/wled/wled.py", line 699, in upgrade await self.session.post(url, data=form) File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request await resp.start(conn) File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 901, in start raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message="Invalid character in chunk size:\n\n b'2a0 \r'\n ^", url=URL('http://192.168.1.102:80/update')

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 28, in handler await func(self, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/wled/update.py", line 89, in async_install await self.coordinator.wled.upgrade(version=version) File "/usr/local/lib/python3.11/site-packages/wled/wled.py", line 711, in upgrade raise WLEDUpgradeError(msg) from exception wled.exceptions.WLEDUpgradeError: Could not download requested WLED version '0.14.0-b6' from https://github.com/Aircoookie/WLED/releases/download/v0.14.0-b6/WLED_0.14.0-b6_ESP02.bin

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service return await service.entity_service_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call response_data = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 157, in async_install await entity.async_install_with_progress(version, backup) File "/usr/src/homeassistant/homeassistant/components/update/init.py", line 428, in async_install_with_progress await self.async_install(version, backup) File "/usr/src/homeassistant/homeassistant/components/wled/helpers.py", line 37, in handler raise HomeAssistantError("Invalid response from WLED API") from error homeassistant.exceptions.HomeAssistantError: Invalid response from WLED API

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Shredder5262 avatar Oct 03 '23 22:10 Shredder5262

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

Code owner commands

Code owners of wled 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 wled Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


wled documentation wled source (message by IssueLinks)

home-assistant[bot] avatar Oct 04 '23 20:10 home-assistant[bot]

This continues to be broken in 2023.10.1

kdknigga avatar Oct 20 '23 18:10 kdknigga

Still not working on 2024.01

popy2k14 avatar Jan 15 '24 21:01 popy2k14

Hi guys. I read somewhere (I forget where but I tried and it works...) that you have to use the ".bin.gz" version. At this time, you have the v0.14.1 on Aircoookie github.

jim1982ha avatar Jan 21 '24 11:01 jim1982ha

@jim1982ha manual update over the web interface with the bin file is working for me. But Update over HA ends in an endless update loop.

popy2k14 avatar Jan 21 '24 13:01 popy2k14

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.