Open rodw opened 9 years ago
Over at request/request I documented an issue that is looking increasingly like a problem in keypress rather than the request module.
keypress
request
In a nutshell:
Given this program:
require("keypress")(process.stdin); var request = require('request'); request.get("https://github.com/request/request/issues/511").pipe(process.stdout);
The command:
node foo.js
prints the entire document, but the command
node foo.js | cat
is truncated after 1024 characters with this error:
stream.js:94 throw er; // Unhandled stream error in pipe. ^ Error: write EPIPE at errnoException (net.js:904:11) at Object.afterWrite (net.js:720:19)
Taking out the first line (the call to keypress) makes the issue go away.
I assume that this is probably true for most streams - the use of request here is probably not required to recreate the issue.
Over at request/request I documented an issue that is looking increasingly like a problem in
keypress
rather than therequest
module.In a nutshell:
Given this program:
The command:
prints the entire document, but the command
is truncated after 1024 characters with this error:
Taking out the first line (the call to
keypress
) makes the issue go away.I assume that this is probably true for most streams - the use of
request
here is probably not required to recreate the issue.