Hiển thị các bài đăng có nhãn zlib. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn zlib. Hiển thị tất cả bài đăng

Nodejs Gzip write after end error zlib

Source:

nce a writable stream is closed, it cannot accept anymore data (see the documentation): this is why on the first execution your code will work, and on the second you’ll have thewrite after enderror.
Just create a new gunzip stream for each request:
http.get(url, function(req) {
   var gunzip = zlib.createGzip();
   req.pipe(gunzip);

   gunzip.on('data', function (data) {
     decoder.decode(data);
   });

   gunzip.on('end', function() {
     decoder.result();
   });

});

N8N - List files of Google drive folder

 https://community.n8n.io/t/google-drive-search-file-folder-returns-folder-id-not-contents/55189/2