-
-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Labels
bugreleasedPull Request released | Issue is fixedPull Request released | Issue is fixedreleased on @old/10.x
Description
Versions
- NodeJS: 22.0.0
- mongodb-memory-server-*: v10.4.2
- mongodb(the binary version): 8.2.1
- mongodb(the js package): 6.20.0
- mongoose: 8.9.2
- system: linux, ubunut
package: mongo-memory-server
What is the Problem?
export MONGOMS_USE_HTTP=true
export MONGOMS_VERSION=8.2.1
export MONGOMS_DOWNLOAD_URL=http://minio.minio:9000/tekton/mongodb-linux-x86_64-debian11-8.2.1.tgz
export MONGOMS_DOWNLOAD_DIR=/.cache/mongodb-binaries
I'm trying to consume MONGOMS_DOWNLOAD_URL from an internal minio bucket to make download faster
I'm getting this error protocol mismatch
AssertionError [ERR_ASSERTION]: protocol mismatch
at Object.request (/workspace/source/node_modules/follow-redirects/index.js:541:14)
at Object.get (/workspace/source/node_modules/follow-redirects/index.js:548:44)
at /workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:348:54
at new Promise (<anonymous>)
at MongoBinaryDownload.attemptDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:346:16)
at MongoBinaryDownload.httpDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:298:35)
at [MongoBinaryDownload.download](http://mongobinarydownload.download/) (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:174:43)
at async MongoBinaryDownload.startDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:107:32)
at async MongoBinaryDownload.getMongodPath (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:82:32)
at async [MongoBinary.download](http://mongobinary.download/) (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinary.js:43:74)
Code Example
export MONGOMS_USE_HTTP=true
export MONGOMS_VERSION=8.2.1
export MONGOMS_DOWNLOAD_URL=http://minio.minio:9000/tekton/mongodb-linux-x86_64-debian11-8.2.1.tgz
export MONGOMS_DOWNLOAD_DIR=/.cache/mongodb-binaries
Debug Output
AssertionError [ERR_ASSERTION]: protocol mismatch
at Object.request (/workspace/source/node_modules/follow-redirects/index.js:541:14)
at Object.get (/workspace/source/node_modules/follow-redirects/index.js:548:44)
at /workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:348:54
at new Promise (<anonymous>)
at MongoBinaryDownload.attemptDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:346:16)
at MongoBinaryDownload.httpDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:298:35)
at [MongoBinaryDownload.download](http://mongobinarydownload.download/) (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:174:43)
at async MongoBinaryDownload.startDownload (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:107:32)
at async MongoBinaryDownload.getMongodPath (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinaryDownload.js:82:32)
at async [MongoBinary.download](http://mongobinary.download/) (/workspace/source/node_modules/mongodb-memory-server-core/lib/util/MongoBinary.js:43:74)
Debug Output
Put The Debugout output hereDo you know why it happenes?
not yet
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugreleasedPull Request released | Issue is fixedPull Request released | Issue is fixedreleased on @old/10.x