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

Image previews not consistently loading #47

Closed
mpitblado opened this issue Nov 29, 2023 · 5 comments
Closed

Image previews not consistently loading #47

mpitblado opened this issue Nov 29, 2023 · 5 comments
Assignees
Labels
bug Something isn't working images requires-followup
Milestone

Comments

@mpitblado
Copy link
Collaborator

On the fungi dataset page, the thumbnails of images do not appear, with the grey placeholder boxes being shown instead.

image

However, when clicking to view all images, the images display according to expectations.

image

In the slideover card, the images again do not load as expected.

image

The one observation I have at this time is that the images are being requested over http, and the server is setup with HSTS. For instance, if I try to access the image through the url in edge instead of firefox, I am presented with a 403 error. I have to manually add the s to http to make the connection possible.

image

As I am working on setting up a new image server, I am curious if you know if this https theory is actually the cause, or if there is something else I should keep in mind in the new setup to fix this bug.

@mpitblado mpitblado added bug Something isn't working images labels Nov 29, 2023
@mpitblado mpitblado added this to the 1.2.0 milestone Nov 29, 2023
@mpitblado
Copy link
Collaborator Author

Within the Lichen dataset, images are loading properly in all locations, which puzzles me because they are being called from the same resource.

image

@MortenHofft
Copy link
Member

I fairly certain the answer is: it works in some cases because some of the the scaled images are cached from a previous working version. The current data points to not functional urls.

It makes it slightly more obscure/confusing because the images are loaded and cached in different ways in different places. But if the initial identifiers worked, then I'm quite certain the site would as well.

But it is a good reminder for me that I should run all images through the cache.

@mpitblado
Copy link
Collaborator Author

Understood, so basically the only reason why any images are currently working at all is because there was a previous cache to rely on. New image paths are in the works that should fix this, and will leave issue open until then to show that I am aware of the grey boxes.

@mpitblado
Copy link
Collaborator Author

@MortenHofft I have tested record https://collections.beatymuseum.ubc.ca/specimen/search?catalogNumber=V1, replacing the associatedMedia to a different source. Image appears to be loading as intended across staging, production, and gbif.org, and confirmed that it is not the cached version of the image by adding a small red dot to the testing image. I will begin rolling out the new image sources to a limited set of records (possibly around 1000) to monitor bandwidth, and then scale up from there if everything looks good.

@mpitblado
Copy link
Collaborator Author

Images now running at full scale. Closing as complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working images requires-followup
Projects
None yet
Development

No branches or pull requests

2 participants