core: Cast: External URL is no longer resolvable in 0.115 and some integrations fail to pull it properly
The problem
I was trying to play with the new stream features and went to cast a camera and I got an error in the logs:
Failed to cast media https://192.168.1.48:8123/api/hls/dfa768e11fafe3ae1eb8b29f8fe83c26111bc8cfbace4411d8035f60af521bbe/playlist.m3u8 from internal_url (https://192.168.1.48:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media https://DOMAIN:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_en_-_google_translate.mp3 from external_url (https://DOMAIN:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Example from Cast: https://github.com/home-assistant/core/blob/dev/homeassistant/components/cast/media_player.py#L364
My own configuration that shows I have external URL configured:
homeassistant:
name: Home
latitude: !secret home_lat
longitude: !secret home_long
elevation: 739
unit_system: imperial
time_zone: America/Los_Angeles
customize: !include customize.yaml
external_url: !secret baseurl
Environment
- Home Assistant Core release with the issue: 0.115.1
- Last working Home Assistant Core release (if known): 0.114.3
- Operating environment (OS/Container/Supervised/Core): Core
- Integration causing this issue: Cast, TTS, Camera possibly Stream, more than a likely a core call is failing
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
service: camera.play_stream
entity_id: media_player.den_home_hub
media_player: camera.baby_monitor
Traceback/Error logs
Failed to cast media https://192.168.1.48:8123/api/hls/dfa768e11fafe3ae1eb8b29f8fe83c26111bc8cfbace4411d8035f60af521bbe/playlist.m3u8 from internal_url (https://192.168.1.48:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Failed to cast media https://DOMAIN:8123/api/tts_proxy/a94a8fe5ccb19ba61c4c0873d391e987982fbbd3_en_-_google_translate.mp3 from external_url (https://DOMAIN:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
Additional information
The TTS call was successful but the camera stream was not successful so I am not 100% sure if that is the issue.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 33 (13 by maintainers)
I think that we should update our error message. I don’t think that @raz0rf0x issue is related to being resolvable but instead have to do with Cast not being able to play the video. Please make sure you run Home Assistant 116 and if you can reproduce it, please open a new issue. Make sure you include the camera that you use and how it is integrated into Home Assistant.