Skip to content

"failed to download/install MongoDB binaries. The error: Error: Status Code is 403" in v6.6.4 on MacOS #340

@e-compton

Description

@e-compton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions