Skip to content

Bad Request error for url from Europeana when requesting thumbnail #3480

Closed as not planned

Description

Description

The following image fails the /thumb endpoint despite having a working URL.

https://api.openverse.engineering/v1/images/2f5756eb-f111-4ac4-aa88-de3bb7dfd8ba/

The request made internally fails when it's send from the API for some reason, but it works from the browser.

https://i0.wp.com/www.cyprusdigitallibrary.org.cy/files/original/2a1c9a7f4d3fbe408013a59c49b67579.jpg?w=600&quality=80

The error has 3.3k occurencies during the last 30 days so I'm labelling medium because of that.

HTTPError: 400 Client Error: Bad Request for url: https://i0.wp.com/www.cyprusdigitallibrary.org.cy/files/original/2a1c9a7f4d3fbe408013a59c49b67579.jpg?w=600&quality=80
  File "api/utils/image_proxy/__init__.py", line 124, in get
    upstream_response.raise_for_status()

Sentry Issue

OPENVERSE-API_THUMBNAILS-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      🗑 Discarded

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions