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

Can't connect to emulator with Mongo DB API - SSL error #1137

Closed
ckcampbell248 opened this issue Jun 27, 2019 · 4 comments · Fixed by #1184
Closed

Can't connect to emulator with Mongo DB API - SSL error #1137

ckcampbell248 opened this issue Jun 27, 2019 · 4 comments · Fixed by #1184

Comments

@ckcampbell248
Copy link

Repro steps:

  1. Right click "Attach Database Accounts"
  2. Select "MongoDB"

Action: cosmosDB.attachEmulator
Error type: Error
Error Message: failed to connect to server [localhost:10255] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:10255]

Version: 0.10.2
OS: win32
Product: Visual Studio Code
Product Version: 1.35.1
Language: en

Call Stack
Pool.eventHandler mongodb-core/server.js:336:35
Pool.emit events.js:182:13
Connection.<anonymous> mongodb-core/pool.js:280:12
Object.onceWrapper events.js:273:13
Connection.emit events.js:182:13
TLSSocket.errorHandler mongodb-core/connection.js:189:49
Object.onceWrapper events.js:273:13
TLSSocket.emit events.js:182:13
TLSSocket._emitTLSError _tls_wrap.js:604:10
Socket.TLSSocket._init.wrap.on _tls_wrap.js:547:36
Socket.emit events.js:182:13
emitErrorNT destroy.js:82:8
emitErrorAndCloseNT destroy.js:50:3
process._tickCallback next_tick.js:63:19
@PrashanthCorp
Copy link
Contributor

  1. Do you have a local instance of the mongo server running?
  2. Can you provide more specific repro steps?

@PrashanthCorp PrashanthCorp added the info-needed See https://aka.ms/azcodeissuereporting label Jul 17, 2019
@rgherta
Copy link

rgherta commented Jul 18, 2019

similar error when connecting to CosmosDB from behind an enterprise firewall / proxy.
It would be nice to have an option to add a ssh tunnel.

@StephenWeatherford
Copy link
Contributor

@PrashanthCorp I can connect to SQL emulator, but not mongo.

@StephenWeatherford StephenWeatherford removed the info-needed See https://aka.ms/azcodeissuereporting label Sep 3, 2019
@StephenWeatherford
Copy link
Contributor

Please see https://github.com/microsoft/vscode-cosmosdb/wiki/Debugging-Connection-Errors. The emulator changed so that you have to explicitly enable the MongoDB port when starting. Will update our error message to point to this wiki.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants