-
Notifications
You must be signed in to change notification settings - Fork 1
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
WildCam Gorongosa - Map Explorer not showing camera images on Chrome 85-ish #203
Comments
Reposting from Slack: I am not able to reproduce this behavior on my system (Mac OSX 10.14, Chrome 85) or my Chromebook. The non-consistent nature of this behavior seems worrisome and will make the diagnosis difficult. |
Interesting - we don't have this bucket in our s3 domain (or i can't find it)... If so it sounds like it's gone missing and broken the URLs
Even still our thumbnail server can only work with data in the zooniverse static bucket, https://github.com/zooniverse/thumbnailer/blob/9502ec2eb608acd95a023ef9624c02b28585c456/nginx.conf#L51-L58 I assume the thumbnailer used to fail for these 'external' images and it used to fallback to the original s3 image in this case. Sadly if the upstream s3 data is missing the thumbnailer won't work at all as there is nothing to fall back on. |
@camallen -- Again, I'm not reproducing any of the behavior you and @shaunanoordin are seeing. I am currently able see the thumbnailer output and access the underlying linked images. Same as for the OceanEYEs case I mentioned in zooniverse/front-end-monorepo#1845, I have demonstrated clearly this is not due to broken links or missing files. |
@lcjohnso this image URL times out for me. Does it work for you? https://zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D32_Season%202_Set%204_EK002250.JPG |
@lcjohnso you are entirely correct. i failed to account for the HTTP scheme in the URL when constructing the curl cmd, i added the https:// scheme component when copying from the original report:
specifically
As i've stated above, our thumbnailer service will not work with URLs that aren't paths in our s3 static bucket, we do this to ensure our server isn't a universal thumbnails service for the wider internet. Thus the thumbnail service will return 415 for images it can’t process, e.g. https://thumbnails.zooniverse.org/320x200/zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D32_Season%202_Set%204_EK002250.JPG However the Thumbmailer component should default back to the original HTTP URL on error https://github.com/zooniverse/Zooniverse-React-Components/blob/3f6bfc0f1f556a0d68af6e57140ef284403c1c7e/src/components/thumbnail.jsx#L29 In the original report image, i see that the 'failing' request are falling back to the http://zooniverse-export.s3-website-us-east-1.amazonaws.com/* URLs however these report '(failed)'. However in the working example, those fallback images are being loaded from the browser cache (304 / cached). If we can't reproduce this issue, perhaps there was an intermittent issue with the s3 origin web server where new pages didn't see the data but browsers with those images in the cache were ok? |
I managed to reproduce this issue, you have to hit a specific part of the wildcam gorogosa map to hit the impacted subjects. the plot thickens - thanks to an idea by @eatyourgreens Chrome appears to be using the secure protocol scheme (see image) even though the original image element src is http - perhaps after the onLoad error it won’t allow the scheme to be ‘downgraded’ to http… 🤔 |
Investigation UpdateI made a terrible mistake in my earlier report - the issue only affects WildCam Gorongosa Lab, not WildCam Darien Lab. @lcjohnso you mentioned you couldn't replicate the issue; can you please try comparing these two on Chrome?
Dev NotesQ: why are 👼 Darien and 👿 Gorongosa different?
Q: what's the sequence of errors?
Solutions?Possibility 1: add See earlier comment...
Possibility 2: ask whoever owns the WildWatch Gorongosa's image bucket to enable https? |
Hi @shaunanoordin -- I'm now on Chrome 86, but I'm seeing the same behavior: both Darien and Gorongosa are working for me. However, thanks to your description I think I see why we're getting different behavior. For Darien (works for both of us): thumbnailer requests are returning with 415 (due to disallowed outside-of-Zooniverse origin), and fallback loading of actual image is working because they are HTTPS enabled. For Gorongosa (works for me, not for you): thumbnailer requests are returning with 415, but fallback loading of HTTP image IS WORKING, but where my browser reports the following "Issue": So it looks like your Chrome is more strict than mine: my Chrome notes the But either way, to allow the images to load correctly for strict browsers, I agree that one of your two solutions is necessary. |
Major Functionality Bug
Original report: https://zooniverse.freshdesk.com/a/tickets/5574
When using Chrome 85 to browse WildCam Gorongosa's
/Darien'sMap Explorer feature, wildcam camera images no longer appear on the "view selected camera" popup.EDIT 2020.10.20: the problems ONLY affect WildCam Gorongosa Lab, not WildCam Darien Lab!
macOS10 + Chrome85 has notable issues
Testing
Open Chrome (tested on 85)
Go to https://classroom.zooniverse.org/#/wildcam-gorongosa-lab/explorers/map/
Click on any of the yellow circles
Expected: the Camera Viewer should show thumbnailed images (or at least any images) from the camera trap
Actual: no images appear. Viewing the network tab, a whole host of errors appear
Open Firefox
Repeat the steps above.
Actual results match expectations: images show normally.
macOS10 + Firefox81 has no issues
Dev Notes
CameraViewer
component.zooniverse-react-components
thumbnails.zooniverse.org
itself seems to have an issue. I'm seeing 415 errors fromhttps://thumbnails.zooniverse.org/320x200/zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D32_Season%202_Set%204_EK002250.JPG
Status
High impact for WildCam-type classrooms, might be medium or high urgency depending on when classrooms start using this.
EDIT 2020.10.20: high impact on WildCam Gorongosa Lab only.
The text was updated successfully, but these errors were encountered: