Closed stefan-guggisberg closed 2 years ago
To reproduce:
const { fetch, disconnectAll } = require('fetch-h2'); (async function () { let resp = await fetch('https://api.fastly.com/public-ip-list'); // don't read body await disconnectAll(); // => throws error }());
Running above code gives the following error:
events.js:288 throw er; // Unhandled 'error' event ^ Error: unexpected end of file at Zlib.zlibOnError [as onerror] (zlib.js:180:17) Emitted 'error' event on Gunzip instance at: at Zlib.zlibOnError [as onerror] (zlib.js:183:8) { errno: -5, code: 'Z_BUF_ERROR' }
This I think is actually fixed, although not sure in which version. I can't personally reproduce. Please re-open if you can reproduce it again (and with which Node version), thanks!
To reproduce:
Running above code gives the following error: