-
-
Notifications
You must be signed in to change notification settings - Fork 108
Description
Outage Acknowledgement
- I confirm that I have read issue Error ServerTime - Unable to retrieve devices from Spotify when trying to play media #543 and this report is not related to the current outage.
The problem
I am getting Unknown Error when trying to call spotcast.play_saved_episodes
Failed to perform the action spotcast.play_saved_episodes. Unknown error
Source: custom_components/spotcast/spotify/account.py:868
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 4:45:40 PM (3 occurrences)
Last logged: 4:50:29 PM
System Health details
System Information
version | core-2025.5.2 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.13.3 |
os_name | Linux |
os_version | 6.6.74-haos-raspi |
arch | aarch64 |
timezone | America/Winnipeg |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
HACS Data | ok |
GitHub API Calls Remaining | 4993 |
Installed Version | 2.0.5 |
Stage | running |
Available Repositories | 1836 |
Downloaded Repositories | 50 |
AccuWeather
can_reach_server | ok |
---|---|
remaining_requests | 14 |
Home Assistant Cloud
logged_in | true |
---|---|
subscription_expiration | January 7, 2026 at 6:00 PM |
relayer_connected | true |
relayer_region | us-east-1 |
remote_enabled | true |
remote_connected | true |
alexa_enabled | false |
google_enabled | true |
cloud_ice_servers_enabled | true |
remote_server | us-east-1-2.ui.nabu.casa |
certificate_status | ready |
instance_id | 7aad6444219648e08d027e7cd0de8cd0 |
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 15.2 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2025.05.1 |
agent_version | 1.7.2 |
docker_version | 28.0.4 |
disk_total | 57.8 GB |
disk_used | 25.4 GB |
healthy | true |
supported | true |
host_connectivity | true |
supervisor_connectivity | true |
ntp_synchronized | true |
virtualization | |
board | rpi4-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Duck DNS (1.19.0), Home Assistant Google Drive Backup (0.112.1), Terminal & SSH (9.17.0), Let's Encrypt (5.4.9), Samba share (12.5.1), Mosquitto broker (6.5.1), Zigbee2MQTT (2.3.0-1), Node-RED (19.0.2), ESPHome Device Builder (2025.5.0), File editor (5.8.0), Z-Wave JS UI (4.3.1), Z-Wave JS (0.13.1), SQLite Web (4.3.1), Grocy (0.24.0) |
Dashboards
dashboards | 4 |
---|---|
resources | 21 |
views | 17 |
mode | storage |
Network Configuration
adapters | lo (disabled), end0 (enabled, default, auto), hassio (disabled), docker0 (disabled), vetha441ba4 (disabled), veth88ca1a5 (disabled), veth4c8dbde (disabled), vethf114773 (disabled), vethaa61007 (disabled), vethda94a5c (disabled), vethff199bc (disabled), veth4f1b9eb (disabled), veth5b3566d (disabled), veth063360d (disabled), veth425a65e (disabled), veth48d0d23 (disabled), veth0c8ebc8 (disabled) |
---|---|
ipv4_addresses | lo (127.0.0.1/8), end0 (10.30.20.10/24), hassio (172.30.32.1/23), docker0 (172.30.232.1/23), vetha441ba4 (), veth88ca1a5 (), veth4c8dbde (), vethf114773 (), vethaa61007 (), vethda94a5c (), vethff199bc (), veth4f1b9eb (), veth5b3566d (), veth063360d (), veth425a65e (), veth48d0d23 (), veth0c8ebc8 () |
ipv6_addresses | lo (::1/128), end0 (fe80::f8ae:849:f082:df95/64), hassio (fe80::8452:7fff:fe79:a66d/64), docker0 (fe80::a461:4cff:fe2a:df72/64), vetha441ba4 (fe80::f092:72ff:fe12:9e2a/64), veth88ca1a5 (fe80::e478:ddff:fe8b:bc91/64), veth4c8dbde (fe80::b0a3:a4ff:feb9:bdbd/64), vethf114773 (fe80::ac6b:58ff:fef3:9da1/64), vethaa61007 (fe80::6444:21ff:fe79:96c9/64), vethda94a5c (fe80::401:35ff:fe99:19cc/64), vethff199bc (fe80::bc9c:bff:feec:5d5/64), veth4f1b9eb (fe80::a457:7fff:fe25:f412/64), veth5b3566d (fe80::4049:25ff:fe2c:7131/64), veth063360d (fe80::60c7:f2ff:fe57:640d/64), veth425a65e (fe80::5c56:b6ff:fe93:765f/64), veth48d0d23 (fe80::449c:49ff:fecf:623c/64), veth0c8ebc8 (fe80::9880:bdff:fedb:2ff6/64) |
announce_addresses | 10.30.20.10, fe80::f8ae:849:f082:df95 |
Recorder
oldest_recorder_run | May 11, 2025 at 10:12 PM |
---|---|
current_recorder_run | May 20, 2025 at 7:32 PM |
estimated_db_size | 876.20 MiB |
database_engine | sqlite |
database_version | 3.48.0 |
Spotcast
error | failed to load: unknown |
---|
Spotify
api_endpoint_reachable | ok |
---|
What type of installation are you running?
Home Assistant OS
Diagnostics information
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
First occurred: 4:45:40 PM (4 occurrences)
Last logged: 4:53:15 PM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1012, in _async_step_call_service
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/spotcast/services/service_handler.py", line 61, in async_relay_service_call
await handler(self.hass, call)
File "/config/custom_components/spotcast/services/play_saved_episodes.py", line 60, in async_play_saved_episodes
await async_play_custom_context(hass, call)
File "/config/custom_components/spotcast/services/play_custom_context.py", line 87, in async_play_custom_context
await account.async_play_media(media_player.id, uris=tracks, **extras)
File "/config/custom_components/spotcast/spotify/account.py", line 868, in async_play_media
if context_uri.startswith("spotify:track:"):
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
Example YAML snippet
action: spotcast.play_saved_episodes
data:
media_player:
entity_id: media_player.living_room_speaker
account: XXXXXXXXXXXXXXXXXXXXXXXXXX
Anything in the logs that might be useful for us?
Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
First occurred: 4:45:40 PM (4 occurrences)
Last logged: 4:53:15 PM
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1012, in _async_step_call_service
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/spotcast/services/service_handler.py", line 61, in async_relay_service_call
await handler(self.hass, call)
File "/config/custom_components/spotcast/services/play_saved_episodes.py", line 60, in async_play_saved_episodes
await async_play_custom_context(hass, call)
File "/config/custom_components/spotcast/services/play_custom_context.py", line 87, in async_play_custom_context
await account.async_play_media(media_player.id, uris=tracks, **extras)
File "/config/custom_components/spotcast/spotify/account.py", line 868, in async_play_media
if context_uri.startswith("spotify:track:"):
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'
Additional information
No response