question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Casting via the media browser fails because of invalid URI

See original GitHub issue

After selecting a track to play in the media browser (amazing feature, by the way), the playback fails because the received URI is using wrong formatting. See log.

  • Using latest version of spotcast
  • I have setup the Spotify integration in Home Assistant
  • I am using multiple accounts
  • Using latest stable version of Home Assistant
  • I have Spotify Premium
  • I’m attaching relevant logs with level debug for component spotcast (see README)
  • I’m using entity_id in the service call and have tried device_name but the issue remains

Environment (please complete the following information):

  • Installation type: [Supervised]
  • HA version: [2022.3.0b5]
  • spotcast version: [3.6.26]

Configuration

spotcast:
  sp_dc: !secret spotcast_dc
  sp_key: !secret spotcast_key

f4cfc6d8f2c411ea968e791d9a657c65

Additional context Log (partly sanitized)

2022-03-01 09:42:02 DEBUG (SyncWorker_2) [custom_components.spotcast.spotcast_controller] setting up with  account default
2022-03-01 09:42:02 DEBUG (SyncWorker_2) [custom_components.spotcast.spotcast_controller] expires: 1646126988 time: 1646124122.887227
2022-03-01 09:42:02 ERROR (SyncWorker_2) [custom_components.spotcast.helpers] [spotify://00000000000000000000000000000000/spotify:track:4HlVUapocBDBqkPtET2knz] is not a valid URI. The format should be [Spotify.<type>.<unique_id>]
2022-03-01 09:42:02 ERROR (SyncWorker_2) [custom_components.spotcast] Invalid URI provided, aborting casting

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
hmmbobcommented, Mar 1, 2022

Will be fixed by #305

1reaction
fcussoncommented, Mar 3, 2022

v3.6.27 has been released with #305 fixes

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Invalid URI. Load of media resource failed" browser error
The only browser error I could find was the Invalid URI… one. I did a bit of googling and found another user who...
Read more >
Error Codes | Cast - Google Developers
Download of media data failed because Cast doesn't use media element to download. This issue can be with your app; if necessary, report...
Read more >
Persistent error: "Invalid URI. Load of media resource failed."
Hey everyone, I've been running into this error message when I view my course in the browser: "Invalid URI. Load of media resource...
Read more >
"invalid url" and cannot edit the entries. : r/prowlarr - Reddit
Decided to try Prowlarr instead of Jackett but cannot connect to any of my apps Sonarr/Radarr etc.How do I attach logs and images?...
Read more >
6 Solutions to "Error Loading Media File Could Not Be Played"
Part 1. Fixing Error Loading Media: File Could Not Be Played · 1. Update your browser · 2. Use Incognito mode · 3....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found