-
-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async iterator does not work on Node.js 14 #1172
Comments
I have traced down a maybe similar issue on this library when using node v14. In this case is making webdriverio fail since a request from got never succeeds nor it raises an error. The code flows through if ((_a = response.req) === null || _a === void 0 ? void 0 : _a.aborted) {
// Canceled while downloading - will throw a `CancelError` or `TimeoutError` error
return;
} In case someone want to take a look, but this is the a contrived repro case: For the record: webdriverio/webdriverio#5319 |
Haven't looked at this yet, will do later today. |
Very nice catch @szmarczak, thanks for digging deep in node internals ! |
We need to wait for a 14.2.0 release. |
Node.js 14.2.0 got released 20h ago, I can confirm that it's fixed now. |
I can confirm too |
Describe the bug
With the brand new node 14 and when awaiting something before consuming a got stream with the async iterator, I don't get any chunks. I don't know if this bug is node related but in my tries, I was able to successfully request as this way with the native http module or in all cases under node 13, as this bug only occurs with node 14. It may be related to #1159.
Code to reproduce
Server part
Got client part
Native node client part
Expected behavior
Actual behavior
Only for got client + node 14:
For other combinations, (native client + node 13/14 or got client + node 13), the actual behavior is the expected behavior
Checklist
The text was updated successfully, but these errors were encountered: