Skip to content
New issue

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

TypeError: mime.lookup is not a function error #28

Open
simonecogno opened this issue Sep 21, 2017 · 2 comments
Open

TypeError: mime.lookup is not a function error #28

simonecogno opened this issue Sep 21, 2017 · 2 comments

Comments

@simonecogno
Copy link

I get this error after running mongodb_s3_backup -n config.sample.json.
Do you know what can cause this?

/usr/lib/node_modules/mongodb_s3_backup/index.js:262
        throw(err);
        ^

TypeError: mime.lookup is not a function
    at /usr/lib/node_modules/mongodb_s3_backup/node_modules/knox/lib/client.js:386:28
    at FSReqWrap.oncomplete (fs.js:82:15)

@bbqaaq
Copy link

bbqaaq commented Oct 25, 2017

I've encounter this issue too, seems the problem is from knox, which is the s3 library used by this library.

Quick fix is replacing the package.json and redirect to the temporary fix link:

ref: Automattic/knox#326

@dkoo761
Copy link

dkoo761 commented Jul 15, 2020

I've forked this repo to fix this issue, remove a deprecated warning, fix logging and add support for: replica sets, SSL, and authenticationDatabase options. Feel free to use it if you like: https://github.com/dkoo761/node-mongodb-s3-backup.

NOTE: My fork is not published to NPM so you'll need to download and install it (which is easy and I've added instructions in the README).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants