question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compress gzip error

See original GitHub issue

this is the configuration that I used:

const expressLogStream = rfs('express.log', {
  interval: '1m',
  compress: 'gzip',
  maxFiles: 100,
  path: path.join(__dirname, '..', 'public', 'logs'),
})

and I get this error that ends node process:

/Users/m0hammad/pheebs/episode-server/node_modules/rotating-file-stream/compress.js:216
        for(var i in files) files[i].once("error", callback);
                                     ^

TypeError: files[i].once is not a function
    at RotatingFileStream.gzip (/Users/m0hammad/pheebs/episode-server/node_modules/rotating-file-stream/compress.js:216:31)
    at /Users/m0hammad/pheebs/episode-server/node_modules/rotating-file-stream/compress.js:102:14
    at FSReqCallback.oncomplete (fs.js:137:23)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
icciccicommented, Sep 23, 2019

Ok @MohGanji ,

thank you, I’ll check deeper.

0reactions
MohGanjicommented, Oct 1, 2019

Thank you for responding quickly and trying to solve the issue. please inform me when it’s done and close the issue then.

Mohmmad.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error compressing GZIP - Unity Forum
I'm trying to make a scene into a package, but ít has this error: Error compressing GZIP: 7-Zip (A) 4.57 Copyright (c) 1999-2007...
Read more >
An input/output error appears when using gzip with ... - Quora
An input/output error appears when using gzip with compressing an image virtual file (20gb) for backup. How do I deal with it? All...
Read more >
compress/gzip - Go Packages
The gzip file stores a header giving metadata about the compressed file. That header is exposed as the fields of the Writer and...
Read more >
How To Optimize Your Site With GZIP Compression
Online: Use the online gzip test to check whether your page is compressed. · In your browser: In Chrome, open the Developer Tools...
Read more >
Compress::Gzip::Error - Crystal 1.3.0
class Compress::Gzip::Error. Compress::Gzip::Error · Exception · Reference · Object. Defined in: compress/gzip/gzip.cr ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found