gzuidhof / zarr.js

Javascript implementation of Zarr
https://guido.io/zarr.js
Apache License 2.0
133 stars 23 forks source link

Errors from `chunkGetItem` are not handled #140

Closed oskbor closed 11 months ago

oskbor commented 1 year ago

Errors from chunkGetItem seems to not be handled and instead I get the classic Uncaught (in promise) error image

This is unfortunate because zarr.js happily returns an array full of zeroes and there is no error for me to catch or react on.

I think the issue might be that onIdle from p-queue never throws?

The error I am seeing originates from this line but I think similar issues could be present at more places in the codebase.