AggregateError: Request failed / Block is not in the block requests
See original GitHub issueWhen running npm run dev
with the latest master, uncommented all test files, and port 8090, some files don’t render, and console contains lots of these errors:
- AggregateError: Request failed
- inner error is that response is undefined at https://github.com/geotiffjs/geotiff.js/blob/c49e8b62cedb84b2557b4d49b6abe0675196a5bf/src/source/blockedsource.js#L190
- Block 27 is not in the block requests
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:24 (18 by maintainers)
Top Results From Across the Web
source/blockedsource.js - geotiff.js
basesource.js';; import { AbortError, AggregateError, wait, zip } from '. ... The requested missing block could already be in the cache ...
Read more >After upgrade to Big Sur git stopped working - Apple Developer
xcode-select: Failed to locate 'git', requesting installation of command line developer tools. Any help to solve this issue would be great.
Read more >AggregateError - JavaScript - MDN Web Docs
The AggregateError object represents an error when several errors need to be wrapped in a single error. It is thrown when multiple errors...
Read more >only throw error if all API calls in Promise.all fail - Stack Overflow
3 Answers 3 · This won't ever run the catch block. Not even when all the requests fail, which is what the OP...
Read more >Invalid Aggregate Error - OutSystems 10 Documentation
The Invalid Aggregate error is issued in the following situations: ... Either remove the join conditions, or change them to stop using the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Has there been any progress on this? This is a pretty basic use case that seems to fail most of the time.
I’ve been looking at this a little recently as I was working on requesting tiles from a COG. It seems like there is an issue with the blockCache. I think what’s happening is that an id is present in the cache at the start of the
fetch
function, but by the end when it’s time to retrieve the block from the blockCache it’s been pushed out of the cache by more recent arrivals, and so when it comes time to grab all the relevant blocks from the cache occasionally something is no longer available. https://github.com/geotiffjs/geotiff.js/blob/4de2c3deb2e751809afada6546330462b9406ae6/src/source/blockedsource.js#L141.As an easy fix I bumped up the cacheSize from 100 to 1000 and all my errors went away, however there is probably a smarter way to manage things rather than relying on a magic number.