Head-scratching assertion error when consuming remote files #4072
Unanswered
PabloReszczynski
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Yes, that'd be the library's fault. I'd recommend you to open an issue with a reproduction. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I've been getting some exceptions when consuming large amounts of data from remote urls using undici.
The pattern I use looks something like this:
But then I get the following error:
AssertionError: false == true
which comes fromlib/api/readable.js
.My question then is, in which cases
stream[kConsume]
is not truthy? Is this some kind of user error, or is the library's fault?Would it make sense to throw a more informative error instead of just an assertion error?
Beta Was this translation helpful? Give feedback.
All reactions