WordPress/openverse-api

Oembed endpoint raises uncaught error on non-existent identifier

AetherUnbound opened this issue · 0 comments

Sentry link

https://sentry.io/share/issue/797fb240716d49efaf6f0b762e3484dd/

Description

When the /v1/images/oembed/ URL receives an invalid identifier or URL for the url query parameter, an AssertionError is raised. This should probably return a 4XX error instead.

Reproduction

  1. just up
  2. Visit: http://localhost:50280/v1/images/oembed/?url=00000000-0000-0000-0000-000000000000