LDflex icon indicating copy to clipboard operation
LDflex copied to clipboard

Uncaught (in promise) TypeError: This readable stream reader has been released and cannot be used to read from its previous owner stream

Open happybeing opened this issue 5 years ago • 1 comments

I see there's another 'Unhandled Promise' issue but this looks different. Not sure if it is in LDFlex or a dependency.

It is intermittent, but if you clone this repo and run yarn && yarn dev, then refresh the browser a dozen times you should hit the following in the TestLDFlex.svelte component:

Uncaught (in promise) TypeError: This readable stream reader has been released and cannot be used to read from its previous owner stream
    at doRead (conversions.js:45)
    at NodeReadable._read (conversions.js:66)
    at NodeReadable../node_modules/readable-stream/lib/_stream_readable.js.Readable.read (_stream_readable.js:443)
    at flow (_stream_readable.js:813)
    at N3StreamParser.<anonymous> (_stream_readable.js:683)
    at N3StreamParser.emit (events.js:146)
    at onwriteDrain (_stream_writable.js:501)
    at afterWrite (_stream_writable.js:489)
    at afterTick (index.js:41)
    at Item../node_modules/process/browser.js.Item.run (browser.js:153)

happybeing avatar Jan 09 '20 18:01 happybeing

I've also seen this issue intermittently in the Chrome browser when developing. Firefox seems unaffected and the built app runs in Chrome. A race condition?

cblakeley avatar Dec 04 '20 17:12 cblakeley