bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

modification for mongo client bug - Bitcore-client

Open rebrahimi1 opened this issue 3 years ago • 1 comments

rebrahimi1 avatar May 31 '22 16:05 rebrahimi1

I still see an error when trying to do wallet commands

{ MongoServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
    at Timeout.waitQueueMember.timer.setTimeout [as _onTimeout] (/home/samarthya/Documents/Github/bitcore/packages/bitcore-client/node_modules/mongodb/lib/core/sdam/topology.js:438:30)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10)
  name: 'MongoServerSelectionError',
  reason:
   TopologyDescription {
     type: 'Single',
     setName: null,
     maxSetVersion: null,
     maxElectionId: null,
     servers: Map { 'localhost:27017' => [ServerDescription] },
     stale: false,
     compatible: true,
     compatibilityError: null,
     logicalSessionTimeoutMinutes: null,
     heartbeatFrequencyMS: 10000,
     localThresholdMS: 15,
     commonWireVersion: null } }

It appears that the connect still blocks the early return if not initialized

sbhatnagar30 avatar Jun 09 '22 22:06 sbhatnagar30

This is being replaced by https://github.com/bitpay/bitcore/pull/3436. We can close this PR.

escottalexander avatar Sep 20 '22 21:09 escottalexander