Error when trying to run tests #868
-
Versions
package: mongo-memory-server What is your question?If i try to run tests i get the following error Message: Determining test suites to run...Starting the MongoMemoryServer Instance failed, enable debug log for more information. Error:
UnexpectedCloseError: Instance closed unexpectedly with code "3221225781" and signal "null"
Exit Code is large, commonly meaning that vc_redist is not installed, the latest vc_redist can be found at https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
at MongoInstance.closeHandler (C:...\node_modules\mongodb-memory-server-core\lib\util\MongoInstance.js:302:58)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:518:28)
at Pipe.<anonymous> (node:net:337:12)
Error: Instance closed unexpectedly with code "3221225781" and signal "null"
Exit Code is large, commonly meaning that vc_redist is not installed, the latest vc_redist can be found at https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
at MongoInstance.closeHandler (C:...\node_modules\mongodb-memory-server-core\lib\util\MongoInstance.js:302:58)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:518:28)
at Pipe.<anonymous> (node:net:337:12) and if i try to use a specific version with the following command,
i get the message:
Neither me nor my professor have any idea how to fix it, but already tried reinstalling everything. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
such a mongodb-memory-server version does not exist, the last
UnexpectedCloseError: Instance closed unexpectedly with code "3221225781" and signal "null"
Exit Code is large, commonly meaning that vc_redist is not installed, the latest vc_redist can be found at https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 did you already try what the error suggests and install the latest
something with your |
Beta Was this translation helpful? Give feedback.
-
Let me try to clarify the situation a little bit:
|
Beta Was this translation helpful? Give feedback.
-
Changing the version number to an actual existing one an removing the space between the number and the && made it finally work. |
Beta Was this translation helpful? Give feedback.
Changing the version number to an actual existing one an removing the space between the number and the && made it finally work.
The Version that works looks like this : ..MONGOMS_VERSION=4.0.27&&..
thanks to all that suggested solutions and helped with that problem