microsoft / vscode-cosmosdb

Azure Databases extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb
MIT License
155 stars 68 forks source link

Failed to Attach Emulator for MongoDB with an error #2246

Open Amar-QA opened 6 months ago

Amar-QA commented 6 months ago

OS: All Azure Database Extension Build: 20240219.1 Regression: Previous Release

Repro Steps:

  1. Open Tree View of Attached Database Accounts -> Click Attach Emulator -> Select Azure Cosmos DB for MongoDB API
  2. Check whether succeeds to Attach Emulator.

Expect: Succeed to Attach Emulator.

Actual: Failed to Attach Emulator for MongoDB with an error "Server at localhost:10255 reports maximum wire version 2, but this version of the Node.js Driver requires at least 6 (MongoDB 3.6)". image

More Info:

  1. It does not reproduce on the previous released Azure Databases extension v0.20.1.

  2. Mongo DB version 4.0 has been installed in the Local Machine. image

  3. Emulator has been started, with the MongoDB endpoint enabled. image