Opened 4 years ago
Last modified 4 years ago
#51085 new defect (bug)
oEmbed JSON returning 404/401 when embedding anything from Spotify
Reported by: | secondlinethemes | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Embeds | Keywords: | |
Focuses: | Cc: |
Description
Hi there,
Trying to embed a Spotify track/podcast episode via oEmbed. It worked great in the past.
Right now I'm testing with WP 5.4.2 and 5.5, no plugins, default theme. PHP 7.3/7.4.
This happens both in the block editor and classic editor.
Getting a 404 in the browser console -
Failed to load resource: the server responded with a status of 404 () - https://domain.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fopen.spotify.com%2Falbum%2F7xYnLZK3hR60bzd6sRNOvm%3Fhighlight%3Dspotify%3Atrack%3A3MUeRkKpLxxyRFzqMTj1HY&_locale=user
Then also 401 when trying to access directly but I guess that makes sense -
{"code":"rest_forbidden","message":"Sorry, you are not allowed to make proxied oEmbed requests.","data":{"status":401}}
Trying to embed:
https://open.spotify.com/embed/track/1G1aohIsSGFUDnkJLGMJr2
Or
https://open.spotify.com/track/1G1aohIsSGFUDnkJLGMJr2