browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

Argument 1 ('blob') to FileReader.readAsArrayBuffer must be an instance of Blob

Open avallete opened this issue 3 years ago • 0 comments

Hi there,

I see this error poping randomly in my monitoring tool (sentry). Strange thing is that I haven't been able to reproduce it locally on my machine.

Here is the complete stack trace gathered from Sentry:

Screenshot 2022-07-05 at 16 33 34

I know that the stack trace is not that useful since the code is minified, but at least we see that the error seems to pop-up from inside the getExifOrientation function.

Another useful information is that the error seems to be ocuring on every devices / browsers, so it's probably not platform specific:

Screenshot 2022-07-05 at 16 35 25

I'll try to add some logging about the original "insanceof" the file passed to the compression layer to gather more data.

It might be related to #147


version: 2.0.0

avallete avatar Jul 05 '22 14:07 avallete