Wp-calypso: Embeds: Spotify playlist embed not working

Created on 10 May 2020  Â·  29Comments  Â·  Source: Automattic/wp-calypso

Steps to reproduce

  1. Add a Spotify embed with a playlist URL, such as https://open.spotify.com/playlist/3tryGC00g1xU3BRdQehjrB?si=hCWNeOlMR6KXzI7v1FBn4Q

What I expected

Playlist should be embedded similar to an album or a song.

Using an album link works, such as: https://open.spotify.com/album/5gIa8hTQGPwVeNYjDwrraZ?si=ky0ZoBy1QxSLF48C6eF-Tw

What happened instead

The editor displayed a message " Sorry, this content could not be embedded."

Browser / OS version

Firefox 76 on macOS (Catalina)

Screenshot / Video

Markup 2020-05-10 at 16 02 34

Context / Source

20984698-hc

Blocks FixTheFlows [Goal] Gutenberg [Pri] Normal [Type] Bug user-waiting

Most helpful comment

This _appears_ to be a problem on Spotify's end, but it's not clear where or how to file a support request.

It was raised on a Spotify forum: https://community.spotify.com/t5/Spotify-for-Developers/Playlist-oembed-down-or-changed/m-p/4949867/highlight/true#M99 and I've commented there.

I've also reached out on Twitter: https://twitter.com/jonsurrell/status/1260608420396306432

All 29 comments

We have another report here: 2956791-zen

This seems to be specific to WordPress.com sites. I was able to replicate this on one of my test sites, here: https://he20171027.com/2020/01/23/spotify-embeds/

I recently added a Spotify playlist to my self-hosted WordPress.org site, and it renders both in the editor, and in the post when viewed publicly: https://pauljacobson.me/2020/05/06/comforting-familiarity/

Spotify_playlist_embed

Another report here - 21006741-hc

Provided workaround to add playlist using a shortcode, but the playlist appears very small, and there isn't a way to adjust the width.

Another report here: 21013620-hc

Shortcode workaround was provided.

Tested on my own simple and AT sites and Spotify embeds don't work on either.

Got another one here 443326-hc

Another report here 11897318-hc

Im trying to embed a playlist on self hosted, both with current Gutenberg and an older version. Neither are working for me.

@pauljacobson was https://open.spotify.com/playlist/37i9dQZF1DX4UtSsGT1Sbe the url you added to get that one running on your self hosted site? Also, do you happen to know the Gutenberg version that is working on? This may be a regression in core. 🤔

Hi @Addison-Stavlo I just tried to add a playlist to a post on the same site, and I was presented with this error:

Screenshot_2020-05-12 Add a New Post ‹ Paul Jacobson — WordPress

When I preview the post, it doesn't even render now:

Screenshot_2020-05-12 • Paul Jacobson

I'm using the Gutenberg v8.0.0 plugin on WordPress 5.4.1, using the Twenty Twenty theme. The site is hosted on Pressable.

The issue persists even if I deactivate the plugin, and revert back to the version that Pressable runs by default (I'm not too sure which version that is).

Another 21035411-hc

Another here 2956060

I opened an issue in core regarding this.

This _appears_ to be a problem on Spotify's end, but it's not clear where or how to file a support request.

It was raised on a Spotify forum: https://community.spotify.com/t5/Spotify-for-Developers/Playlist-oembed-down-or-changed/m-p/4949867/highlight/true#M99 and I've commented there.

I've also reached out on Twitter: https://twitter.com/jonsurrell/status/1260608420396306432

Another report here - 2438058-hc

Another report here: 2975135

Noting core has this open at - https://core.trac.wordpress.org/ticket/50116
Although, it does still seem to be an issue from Spotify's end 😞

Reported in #20048151-hc

Another report in #2982202-zen

Another issue in #17727539-hc

It seems existing embedded Spotify link still works, only embedded URLs that have not been added before.

Another report in #4973969-hc. This user was using Classic editor.

Provided them with a shortcode workaround. And it worked.

Another report in #21222927-hc

Another report #21237753-hc

Provided shortcode workaround.

Another report 3001941-zen
Provided shortcode workaround.

Another report in 2745366-hc
Shared the shortcode workaround as a solution.

Replicated this on a GoDaddy site.
This happens in Core to - https://core.trac.wordpress.org/ticket/50116
It is related to Spotify issue - https://github.com/spotify/web-api/issues/1060

Another here: 3003746-zen
The shortcode workaround on my test site seems to generate the block outside of the webpage, barely visible to the left:
https://snipboard.io/52tNay.jpg

Another report here: 21495866-hc
Shortcode alternative worked.

Another report here: #2997547-zen
Shared the shortcode workaround.

Another report in hc-15470225
Also, I shared the shortcode as a workaround.

Report in 21668828-hc
Shortcode workaround shared in 3035787-zen

Spotify seems to have fixed things on their end. I've tested and playlist embed is working.

Closing.

Was this page helpful?
0 / 5 - 0 ratings