[wp-trac] [WordPress Trac] #51085: oEmbed JSON returning 404/401 when embedding anything from Spotify

WordPress Trac noreply at wordpress.org
Thu Aug 20 16:49:49 UTC 2020


#51085: oEmbed JSON returning 404/401 when embedding anything from Spotify
------------------------------+-----------------------------
 Reporter:  secondlinethemes  |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  5.5
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51085>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list