When loading a JSON file pointing to an archive (one served by browsertrix-cloud), I get the error message
Sorry, this URL could not be loaded because the size of the file is not accessible.
Make sure this is a valid URL and you have access to this file.
It appears that for JSON files the sourceLoader does not return a length in this case
|
if (!sourceLoader.length) { |
|
progressUpdate(0, `\ |
|
Sorry, this URL could not be loaded because the size of the file is not accessible. |
|
Make sure this is a valid URL and you have access to this file.`); |
|
if (abort) { |
|
abort.abort(); |
|
} |
|
return false; |
|
} |
And indeed, when disabling this check, the archive is loaded correctly.
Does it make sense to replace this conditional by the following (which works for me)?
if (sourceLoader.canLoadOnDemand && !sourceLoader.length) {
When loading a JSON file pointing to an archive (one served by browsertrix-cloud), I get the error message
It appears that for JSON files the
sourceLoaderdoes not return alengthin this casewabac.js/src/loaders.js
Lines 562 to 570 in d7e0021
And indeed, when disabling this check, the archive is loaded correctly.
Does it make sense to replace this conditional by the following (which works for me)?