Problem/Motivation

We received reports of Soundcloud embeds no longer loading on our D7 sites. I traced it to Soundcloud blocking cURL requests which this issue attempts to fix. This issue relies on that one.

I should mention that the embeds we are using are private. After patching from #3388657: Soundcloud blocking cURL requests, switch to drupal_http_request?, the embeds now load but with the error "You have not provided a valid SoundCloud URL." I don't know the cause but my assumption is something changed in the JSON response from Soundcloud.

Steps to reproduce

Using 7.x or 2.0.x, visit a page with a private Soundcloud embed and see the embed widget loading but showing the error mentioned above.

Comments

vinmassaro created an issue. See original summary.

vinmassaro’s picture

Status: Active » Needs work
vinmassaro’s picture

Title: Soundcloud embeds not loading with error "You have not provided a valid SoundCloud URL." » Soundcloud private embeds not loading with error "You have not provided a valid SoundCloud URL."
Issue summary: View changes
Status: Needs work » Active
akoepke’s picture

Status: Active » Closed (works as designed)

I have had a look into this issue. The private URL should have a token at the end similar to s-3M4TCI8FWDC

This forms part of the path and the private track will load correctly if this is included.

vinmassaro’s picture

Status: Closed (works as designed) » Active

@akoepke: I am using a private URLs that contain the secret token as you mentioned. I am hoping you can take another look at this because it is no longer working and this has been in place for years with nothing changed on our end. If you contact me on Drupal slack or through my contact form, I can point you to some non-working examples. Thanks!

markie’s picture

Can confirm this is a valid issue. I have tried

https://soundcloud.com/therandomatics/cyber-street/s-u8aRnQedEGm?in=ther...

and even removed all the utm_ parameters. I even tried just using the si parameter but to no avail.

Additionally, I tried shortening the link to https://on.soundcloud.com/V4K39Y8baaXe1seu5 and that gives an immediate error.