SHARE
TWEET

Untitled

a guest Jun 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const db = process.env.DB;
  2. mongoose
  3.   .connect(db, {useNewUrlParser: true})
  4.   .then(() => console.log('connected'))
  5.   .catch(err => console.log(err))
  6.      
  7. { MongoNetworkError: connect ECONNREFUSED 18.194.103.39:27017
  8.     at TLSSocket.err (/Users/alex/Documents/dev/WD/Projects/personal-library/node_modules/mongoose/node_modules/mongodb-core/lib/connection/connect.js:287:16)
  9.     at Object.onceWrapper (events.js:277:13)
  10.     at TLSSocket.emit (events.js:189:13)
  11.     at emitErrorNT (internal/streams/destroy.js:82:8)
  12.     at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
  13.     at process._tickCallback (internal/process/next_tick.js:63:19)
  14.   name: 'MongoNetworkError',
  15.   errorLabels: [ 'TransientTransactionError' ],
  16.   [Symbol(mongoErrorContextSymbol)]: {} }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top