You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a browser, Content-Range is only readable if the server whitelists it in CORS settings. Various sources, such as some upstream S3 buckets, do not. And I don't think we can always rely on it being able to be accessed.
So in the browser, metadata.size gets set to the size of one chunk instead of the entire size of the file.
SourceChunk.fetch then throws Request outside of bounds for any header-source read past byte ~1 MB
We're getting errors of
SourceError: Request outside of bounds. This is an apparent regression from #1666. It sounds likeContent-Rangeheader to infer the size of a request, falling back toContent-LengthContent-Rangeis only readable if the server whitelists it in CORS settings. Various sources, such as some upstream S3 buckets, do not. And I don't think we can always rely on it being able to be accessed.metadata.sizegets set to the size of one chunk instead of the entire size of the file.SourceChunk.fetchthen throwsRequest outside of boundsfor any header-source read past byte ~1 MBRef developmentseed/stac-map#460 and developmentseed/deck.gl-raster#524
cc @gadomski