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

HTTP errors (415,424) in developer console #2227

Closed
roytanck opened this issue May 30, 2023 · 1 comment
Closed

HTTP errors (415,424) in developer console #2227

roytanck opened this issue May 30, 2023 · 1 comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: api Related to the Django API
Projects

Comments

@roytanck
Copy link

Description

When searching Openverse from WordPress 6.2.2, I'm seeing a lot of HTTP errors in the devtools console. This happens with thumbnail URLs like these:

https://api.openverse.engineering/v1/images/e1f5bd15-2ce1-4323-9088-684984f2d849/thumb/
https://api.openverse.engineering/v1/images/86578ecd-a9fb-4813-ac5c-dcb2a3e2ec52/thumb/
https://api.openverse.engineering/v1/images/4f1d53f7-0c48-4ae4-ac4e-57c3477aed1f/thumb/

This does not seem to have a functional impact. I can still see the thumbnails, and select the images. Colleagues report more serious errors after several searches, but I've not been able to recreate this.

Reproduction

  1. Create a new page or post.
  2. Click the [+] button, then "media", then "Openverse".
  3. Enter a seach keyword ("meerkat" yields a lot of 424's).
  4. Check the console to see the errors.

Screenshots

Scherm­afbeelding 2023-05-30 om 10 35 04

Environment

  • Device: Macbook Pro (M1), Lenovo Thinkpad E490
  • OS: MacOS 13.3.1, Windows 10, Ubuntu 20.04
  • Browser: Chrome, Firefox
  • Version: latest
@roytanck roytanck added 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels May 30, 2023
@openverse-bot openverse-bot added this to Backlog in Openverse May 30, 2023
@dhruvkb dhruvkb added 🟧 priority: high Stalls work on the project or its dependents 💻 aspect: code Concerns the software code in the repository 🧱 stack: api Related to the Django API and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels May 31, 2023
@krysal krysal moved this from Backlog to To do in Openverse Jun 5, 2023
@zackkrida
Copy link
Member

zackkrida commented Jun 13, 2023

Hi @roytanck, thanks again for reporting this. The issue was with between one of Openverse's sources, rawpixel.com, and photon, the image service we're currently using to serve Openverse's thumbnails. Photon was incorrectly polluting rawpixel urls with extra query parameters and causing the results to fail.

I've tested this with several test searches in WP 6.2 and the latest nightly, and there are no longer any 424s present. In fact I see no 4xx errors for any Openverse searches through the Gutenberg integration.

There are still some 415s present in Openverse related to images from the Smithsonian which send chunked jpeg files that do not have the correct Content-Type headers set. I am going to create a separate issue for those now.

@sarayourfriend sarayourfriend moved this from To do to Done! in Openverse Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: api Related to the Django API
3 participants