WordPress / WordPress/pattern-directory

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

Open
#582 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Creator
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at the pattern directory URL and searching Openverse for images, then inspect the thumbnail requests and their response status. Done means thumbnails returning 400 errors are not displayed as gray boxes, while working thumbnails remain visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.