Versions
- NodeJS: 12.16.1
- mongodb-memory-server-*: 6.6.4
- mongodb: 4.0.13
- system: MacOS Catalina 10.15.5
package: mongo-memory-server
What is the Problem?
During installation and at runtime the packages throws an error when downloading mongodb.
mongodb-memory-server: checking MongoDB binaries cache...
failed to download/install MongoDB binaries. The error: Error: Status Code is 403 (MongoDB's 404)
The error is exclusive to 6.6.4 and we are currently pinning the version to 6.6.3 as a workaround.
Code Example
npm i mongodb-memory-server
Do you know why it happens?
Upon inspection of the code it is generating this URL to download mongodb, which returns 403:
https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.0.13.tgz
Whereas version 6.6.3 uses this URL which does work:
https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-latest.tgz