Skip to content

Trailing slash in URL breaks oEmbed #46

Open
@sqpdln

Description

@sqpdln

Title: Trailing slash in URL breaks oEmbed

Issue found of: March 24th, 2021

Scope(s):

  • oEmbed

Steps to reproduce:

Example taken from your docs.

This works:

curl "https://soundcloud.com/oembed" -d 'format=json' -d 'url=https://soundcloud.com/forss/flickermood'

{"version":1.0,"type":"rich","provider_name":"SoundCloud","provider_url":"https://soundcloud.com","height":400,"width":"100%","title":"Flickermood by Forss","description":"From the Soulhack album,&nbsp;recently featured in this ad <a href=\"https://www.dswshoes.com/tv_commercial.jsp?m=october2007\">https://www.dswshoes.com/tv_commercial.jsp?m=october2007</a> ","thumbnail_url":"https://i1.sndcdn.com/artworks-000067273316-smsiqx-t500x500.jpg","html":"<iframe width=\"100%\" height=\"400\" scrolling=\"no\" frameborder=\"no\" src=\"https://w.soundcloud.com/player/?visual=true&url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F293&show_artwork=true\"></iframe>","author_name":"Forss","author_url":"https://soundcloud.com/forss"}%

This does not work:

curl -v "https://soundcloud.com/oembed" -d 'format=json' -d 'url=https://soundcloud.com/forss/flickermood/'

{...}
HTTP/1.1 404 Not Found
{...}

Expected behaviour:

Url with trailing slash should work, alternatively make it clear in the docs trailing slashes are not allowed.

Actual behaviour:

HTTP/1.1 404 Not Found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions