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

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

Closed
e-compton opened this issue Aug 24, 2020 · 3 comments · Fixed by #341
Labels

Comments

@e-compton
Copy link

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

@e-compton e-compton added the bug label Aug 24, 2020
@hasezoey
Copy link
Member

what is your config for mongo version?

@e-compton
Copy link
Author

Its not set to anything:

  "config": {
    "mongodbMemoryServer": {
      "debug": "1"
    }
  },

@hasezoey
Copy link
Member

with 31183dd (#341 / 6.6.5) this should be fixed

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

Successfully merging a pull request may close this issue.

2 participants