Image Viewer tiles show broken links
FS Image Viewer Problem
I have found time to dig deeper into a problem with the image viewer that has plagued me for many months.
Symptoms:
The image viewer page presents an array of 'broken link' tiles although the image index slider at the bottom of the page shows mini-thumbnails correctly.
The browser console reports multiple 401 errors for every tile:-
1_0.jpg:1 Failed to load resource: the server responded with a status of 401 ()
2_2.jpg:1 Failed to load resource: the server responded with a status of 401 ()
0_0.jpg:1 Failed to load resource: the server responded with a status of 401 ()
0_2.jpg:1 Failed to load resource: the server responded with a status of 401 ()
2_1.jpg:1 Failed to load resource: the server responded with a status of 401 ()
1_1.jpg:1 Failed to load resource: the server responded with a status of 401 ()
4_1.jpg:1 Failed to load resource: the server responded with a status of 401 ()
4_2.jpg:1 Failed to load resource: the server responded with a status of 401 ()
2_0.jpg:1 Failed to load resource: the server responded with a status of 401 ()
3_0.jpg:1 Failed to load resource: the server responded with a status of 401 ()
4_0.jpg:1 Failed to load resource: the server responded with a status of 401 ()
etc.
However, using the browser diagnostic tools to select any of the above elements to open in a new tab causes that tile to be displayed properly.
I suspect that there is a timing problem as the page is loading, and something is not set in time for the GET request.
As a result
responds with 401.
This is the case for all tiles with the URL form:
However
works correctly, as do all the others in the index slider
The actual sequence of loading presents the index mini-thumbnails before the image tiles, so it is clear that the connection to the server is intact before the broken links occur.
So the issue seems to be connected to the delivery of /image_files/X/X_X.jpg
My guess is as follows:
All the index slider thumb_p200.jpg images already exist on the server.
The complete orginal image, e.g. image 123 of 1,234 of film #012345678 already exists on the server
To prevent theft by bot, the display mechanism is designed to prohibit the display of whole images, so the image viewer creates 60 tiles from the original image on-the-fly while the page is loading.
In order to allow time for these 60 tiles to be created the image viewer loads the page decoration and index thumbnails first, which "should" allow sufficient time for the 60 tiles to be completed before the 60 tile GET requests are made.
It appears that my browser makes these GET requests before the 60 tiles are ready, so I receive 60 401 errors.
[ Please don't just ask me to change browser. ]
Answers
-
NOTE: The URLs for the failed tiles were removed by the moderator. They correspond to those URLs for the tiles that have the ending /image_files/n/nn_n.[j p g]
I hope this is acceptable.
1 -
@Re Searching I suspect it may be the Vanilla Community software that has stripped the links out, mods usually indicate such a change via a comment and/or a reason in square brackets (and I can't see anything in this that would have broken the Code of Conduct, anyway). Vanilla has a long history of doing weird things to posts.
0 -
@MandyShaw1 Thanks for the clarification.
0 -
Further Info: -
I have tried throttling the machine CPU and the browser (CPU and Network) to slow down the requests, but it does not correct the issue. The tiles still fail to load in the image viewer, but load correctly in a new tab.
0 -
Yet Further Info:
I have only just noticed that all the files that fail to display seem to be avif encapsulated jpg, whereas all the index slide thumbnails are simply jpg
It seems that I will need to migrate browser after all. That will be an exercise for the coming winter months (Northern hemisphere only).
0 -
Yet Even Further info:
I have discovered from tests.caniuse.com that my browser can display AVIF files, so that's not the issue.
0 -
@Re Searching can you paste the URL just as text (not as a link) for one of the URLs please? Hopefully that will stay put. I want to see if I can replicate the problem. Thanks.
0 -
@MandyShaw1 The tiles that refuse to load within the image viewer are of the form:
h t t p s ://sg30p0.familysearch.org/service/records/storage/deepzoomcloud/dz/v1/apid:TH-266-11755-72102-35/image_files/11/4_0.j p g
These tile images will load correctly and display in a browser tab, but won't within the image viewer structure on the page. They all come back with a 401 error and show as a broken link.
I can't understand why the image tiles are accessible from one angle, but not from the other. The same URL is used in both cases. 401 implies some kind of permission error, but it loads fine outside the image viewer.
1 -
Sorry @Re Searching, could I have the corresponding Image Viewer url itself please?
0 -
@MandyShaw1 - Crisis ? What Crisis ?. The problem appears to be with this machine / browser combination. A different machine with the same OS and an older version of the same browser works correctly. I will now try to find out why and report back.
1 -
@Re Searching I'm wondering if there's some sort of cross-site issue between sg30p0.familysearch.org and the main website, where perhaps the newer browser doesn't like something about the main website Image Viewer's usage of sg30p0. Interested to see what you come up with.
0 -
@MandyShaw1 The problem appears to have been with some kind of token passed in a 3rd party cookie.
The default configuration is: Deny All, Allow Selected, and the set of allowed domains did not allow 3rd party cookies on all 3 of the domains used within the image viewer :-
.familysearch.org
www.familysearch.org
.www.familysearch.orgThe newer browser has now been changed to add the above as https only domains, and the image viewer is working properly.
Unfortunately, during the process, it self-updated and somehow lost all the bookmarks and settings, which I have now reinstalled from a backup profile. (Phew!)
1 -
Thanks for the update! I'm glad to hear you have got to the bottom of it.
0
