Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openverse thumbs can return 400 status codes but are still displayed as gray boxes #582

Open
zackkrida opened this issue May 30, 2023 · 3 comments
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview

Comments

@zackkrida
Copy link
Member

Describe the bug
A clear and concise description of what the bug is.

Currently, searching Openverse media in the pattern directory shows many broken thumbnails.

To Reproduce
Steps to reproduce the behavior:

  1. Visit https://wordpress.org/patterns/?pagename=new-pattern
  2. Insert a new image; be prompted to search Openverse
  3. Search Openverse, using a suggested search or any arbitrary term
  4. Observe broken thumbnails with gray backgrounds

Expected behavior
A clear and concise description of what you expected to happen.

Only working thumbnails should be displayed. Perhaps thumbnails which error should be filtered out.

Screenshots
If applicable, add screenshots to help explain your problem.

CleanShot 2023-05-30 at 11 17 25@2x

Additional context
Add any other context about the problem here.

Anyone on @WordPress/openverse-maintainers should be able to provide advice or support here.

@ryelle
Copy link
Contributor

ryelle commented May 30, 2023

Is it expected that the openverse API response returns broken URLs, or are we doing something wrong in the w.org proxy layer?

@zackkrida
Copy link
Member Author

It is possible for Openverse thumbnails to return 400 errors. Ideally it would never happen. We've had some recent issues with this that we're still diagnosing and hoping to fix this week. The proxy looks perfect. The suggestion here would just be to perhaps not display thumbnails that fail to load at the client level. This would mean the user sees less than a full page but doesn't see the gray, placeholder UI.

@zackkrida
Copy link
Member Author

Oh, it just occurred to me @ryelle, the other "fallback" we use on Openverse is to use the full-resolution image if the thumbnail ever fails. It can burden users bandwidth-wise if a whole bunch of thumbnails are failing, but it does let the user see all available choices regardless of thumbnail availability.

@ryelle ryelle added the [Component] Pattern Creator Anything related to the pattern front end editor or preview label Dec 11, 2024
@ryelle ryelle moved this to ⚠ On Hold/Blocked in WordPress.org Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview
Projects
Status: On Hold/Blocked
Development

No branches or pull requests

2 participants