We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
need readable.on('error', ...), otherwise current process will cash when gzip is used and response data is corrupted
readable.on('error', ...)
let headers = { 'Accept-Encoding': 'gzip, deflate' }; let request = require('request-light'); setInterval(() => { console.log('process running..'); }, 2000); request.xhr({ url: 'http://json.schemastore.org/tsconfig', followRedirects: 5, headers: headers }) .then(res => { console.log('res', res); }) .catch(err => { console.error('err'); });
node xhr-test.js events.js:193 throw er; // Unhandled 'error' event ^ Error: incorrect data check at Zlib.zlibOnError [as onerror] (zlib.js:133:17)
The text was updated successfully, but these errors were encountered:
b9e0bb7
aeschli
No branches or pull requests
need
readable.on('error', ...)
, otherwise current process will cash when gzip is used and response data is corruptedThe text was updated successfully, but these errors were encountered: