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 Images from RawPixel fail to insert #443

Closed
zackkrida opened this issue Mar 18, 2022 · 2 comments
Closed

Openverse Images from RawPixel fail to insert #443

zackkrida opened this issue Mar 18, 2022 · 2 comments
Assignees
Labels
[Component] Pattern Creator Anything related to the pattern front end editor or preview [Type] Bug Something isn't working

Comments

@zackkrida
Copy link
Member

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

Attempting to add an Openverse image that comes from the RawPixel source silently fails due to a 403 error.

To Reproduce
Steps to reproduce the behavior:

  1. https://wordpress.org/patterns/new-pattern/
  2. Open the browser network pane
  3. Attempt to add an image block
  4. Search for "Columbian Humming Bird" in the modal
  5. Select the only result, and click the "Add media" button
  6. Observe 403 errors in the console and that the image wasn't added

The url the pattern directory attempts to fetch from RawPixel is:

https://img.rawpixel.com/s3fs-private/rawpixel_images/website_content/pd17-425-tong-calypte-anna-columbian-humming-bird.jpg?w=1200&h=1200&fit=clip&crop=default&dpr=1&q=75&vib=3&con=3&usm=15&cs=srgb&bg=F4F4F3&ixlib=js-2.2.1&s=98d2bd15da0cdcbecafd46b007c86573

The encoding in the URL seems to be the cause of the 403s. If one decodes it in a tool like https://www.url-encode-decode.com/, you can see the url becomes:

https://img.rawpixel.com/s3fs-private/rawpixel_images/website_content/pd17-425-tong-calypte-anna-columbian-humming-bird.jpg?w=1200&h=1200&fit=clip&crop=default&dpr=1&q=75&vib=3&con=3&usm=15&cs=srgb&bg=F4F4F3&ixlib=js-2.2.1&s=98d2bd15da0cdcbecafd46b007c86573

which I can set as an image source correctly:

@LukaszJaro
Copy link

Just wanted to add I am also having this issue as of yesterday when trying to add media from openverse:

image

image

@ryelle ryelle added [Type] Bug Something isn't working [Component] Pattern Creator Anything related to the pattern front end editor or preview labels Mar 18, 2022
@ryelle ryelle self-assigned this Mar 18, 2022
@webmandesign
Copy link

The same issue here.

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 [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants