Openverse Images from RawPixel fail to insert #443
Labels
[Component] Pattern Creator
Anything related to the pattern front end editor or preview
[Type] Bug
Something isn't working
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:
403
errors in the console and that the image wasn't addedThe 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:
The text was updated successfully, but these errors were encountered: