question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AggregateError: Request failed / Block is not in the block requests

See original GitHub issue

When 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:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:24 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
rogerscgcommented, Aug 12, 2021

Has there been any progress on this? This is a pretty basic use case that seems to fail most of the time.

1reaction
rowanwinscommented, Jun 28, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found