Soundcloud private embeds not loading with error "You have not provided a valid SoundCloud URL."

Created on 20 September 2023, about 1 year ago
Updated 3 November 2023, about 1 year ago

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 πŸ› Soundcloud blocking cURL requests, switch to drupal_http_request? Needs review attempts to fix. This issue relies on that one.

I should mention that the embeds we are using are private. After patching from πŸ› Soundcloud blocking cURL requests, switch to drupal_http_request? Needs review , 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.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vinmassaro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @vinmassaro
  • Status changed to Needs work about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States vinmassaro
  • Status changed to Active about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States vinmassaro
  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia akoepke

    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.

  • Status changed to Active about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States vinmassaro

    @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!

Production build 0.71.5 2024