mongodb-js / mongodb-prebuilt

Install MongoDB prebuilt package using npm https://npmjs.org/package/mongodb-prebuilt
ISC License
56 stars 50 forks source link

Use https protocol to load prebuild mongodb image #46

Closed mikhail-angelov closed 5 years ago

mikhail-angelov commented 6 years ago

It's better to use https protocol to load mongodb binary e.g. current load url is: http://downloads.mongodb.org/linux/mongodb-linux-x86_64-debian71-latest.tgz but resource is available via https://downloads.mongodb.org/linux/mongodb-linux-x86_64-debian71-latest.tgz as well

it may help to use this library for unit tests on free plans on service CI or cycle CI currently it hungs with error like this

  mongodb-download-MongoDBDownload isDownloadPresent() location missing: false +0ms
(node:111) UnhandledPromiseRejectionWarning: 
Unhandled promise rejection (rejection id: 2): Error: Protocol "http:" not supported. Expected "https:"
Too long with no output (exceeded 10m0s)
IhostVlad commented 6 years ago

We has solved this problem by following workaround: fix mongodb-download package version in package.json to 2.2.3 - after it works very well

"mongo-unit": "^1.2.0",
"mongodb-download": "2.2.3",
"mongodb-prebuilt": "^6.3.4",

But of course problem still faced and should be fixed by mongodb-prebuild maintainers

LoneRifle commented 5 years ago

Should be fixed by winfinit/mongodb-download#27