-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Could not download version other than default (Error: connect ECONNREFUSED 127.0.0.1:443) #600
Comments
i can help much with this, because i dont know macos, and also #483 (mongodb still has not resolved the issue) but from what i can tell, do you maybe have some kind of firewall or custom dns or proxy activated that would redirect from the mentioned link to |
@hasezoey yes, downloading works well when opening the link in the browser. Even without Firewall this issue occurs. It also happens on Linux System for one of my colleagues. It is working when using version mongodb-memory-server at version 6.9.3. So my guess was that it might be connected to a change done within this repository. |
the only change that is related to that is that since then instead of using From what i can tell, this is not really a problem related to this package, because something external is redirecting to localhost instead of actual ip Example things that could cause this:
|
For some reason, https is not using the url you pass to get.
|
what url and how did you try to set it? also, the url gets generated in: and later then converted to a WhatWG URL object PS: also mabye check if |
I just set MONGOMS_VERSION: '4.2.17' However, if I patch my local MongoBinaryDownload like so: log('httpDownload');
const downloadUrl = this.assignDownloadingURL(url);
return new Promise((resolve, reject) => {
httpOptions.host = "fastdl.mongodb.org";
httpOptions.path = "/win32/mongodb-win32-x86_64-2012plus-4.2.17.zip";
log(`httpDownload: trying to download "${downloadUrl}"`);
log(`httpDownload: httpOptions "${JSON.stringify(httpOptions)}"`);
https_1.default
.get(httpOptions, (response) => { // notice the different call to https.get
if (response.statusCode != 200) { |
could you provide what the following would output?: log(`httpDownload: urlobj "${require('util').inspect(url)}"`); also, is your nodejs version really |
thanks for providing, but this makes me more clueless, i have no idea why it refuses to download with a URL object, instead of a POJO "url object" |
Of course! http.get(url.toString(), (response) => {}) also worked for me. |
it is not, and that is why i am confused |
Somehow, the issue seems to be resolved and downloading works again on my machine. I'll close this issue. |
Still going on for me |
@aviadsteps if you still have this problem, please provide necessary information to debug it, like system information and debug information, Enable Debug Mode |
I've been running into this in a handful of contexts, initially a few weeks ago when migrating my repos into a monorepo setup and using an Part of that involved changing my image version from Logs from last FAILED run
From last SUCCESSFUL run
|
@pdfowler thanks for your input
sorry this happened, but this package currently does not apply any formatting conversions for the mongodb download url (meaning it is literally the same as in mongodb's archive name), which can be seen for linux, windows and osx, though the mac one is outdated and not fixed since beginning ~2020 and these links are also listed at Config-Options: VERSION i have also made a issue to track a dedicated guide for this, see #630
your error there is |
Fwiw, I was seeing the same error on my Ubuntu 18 ci image |
thanks for that information, but sadly this still does does not resolve on why this happenes |
pls see my answer here #615 (comment) |
Versions
package: mongodb-memory-server
What is the Problem?
When running our jest tests, we try to set a specific version 4.2.10 to use the same version as on our infrastructure. After upgrading the mongodb-memory-server package to version 8.2.0 we run into issues and binaries are not downloaded. Error
Error: connect ECONNREFUSED 127.0.0.1:443
is thrown.Code Example
package.json config:
Code:
Debug Output
Debug Output
Do you know why it happenes?
no
The text was updated successfully, but these errors were encountered: