home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.77k stars 28.92k forks source link

Error: Invalid response from Roku API media_player.55_sharp_roku_tv #115617

Open Shredder5262 opened 2 months ago

Shredder5262 commented 2 months ago

The problem

Having this issue with my roku TV

Core 2024.4.2 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.1

(media_player.55_sharp_roku_tv) turned on (remote.55_sharp_roku_tv) turned on (select.55_sharp_roku_tv_application) turned Home

`2024-04-14 14:58:57.720 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140657511515200] Invalid response from Roku API Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/roku/helpers.py", line 43, in wrapper await func(self, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 481, in async_select_source await self.coordinator.roku.launch(appl.app_id) File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 336, in launch await self._request(f"launch/{app_id}?{encoded}", method="POST", encoded=True) File "/usr/local/lib/python3.12/site-packages/rokuecp/rokuecp.py", line 174, in _request raise RokuError( rokuecp.exceptions.RokuError: ('HTTP 503', {'content-type': '', 'message': '', 'status-code': 503})

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 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/scene/init.py", line 116, in _async_activate await self.async_activate(**kwargs) File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 370, in async_activate await async_reproduce_state( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 70, in async_reproduce_state await asyncio.gather( File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 64, in worker await platform.async_reproduce_states( File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 145, in async_reproduce_states await asyncio.gather( File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 91, in _async_reproduce_states await call_service(SERVICE_SELECT_SOURCE, [ATTR_INPUT_SOURCE]) File "/usr/src/homeassistant/homeassistant/components/media_player/reproduce_state.py", line 60, in call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/roku/helpers.py", line 52, in wrapper raise HomeAssistantError("Invalid response from Roku API") from error`

What version of Home Assistant Core has the issue?

core-2024.4.2

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

Roku

Link to integration documentation on our website

https://www.home-assistant.io/integrations/roku

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

I currently have debug logs enabled, will upload soon.

Additional information

No response

home-assistant[bot] commented 2 months ago

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

Code owner commands Code owners of `roku` 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 roku` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


roku documentation roku source (message by IssueLinks)

Shredder5262 commented 2 months ago

Debug log, Note again, this occurs every night that one of my automation sequences run 2024-04-17 21_19_33-Settings – Home Assistant - Vivaldi

home-assistant_roku_2024-04-18T02-18-11.568Z.log

Shredder5262 commented 2 months ago

Any feedback on this?

Shredder5262 commented 2 months ago

Is this integration dead?