javascript - Node.js connect ECONNREFUSED 127.0.0.1:8000 DynamoDB Local Error -


i'm using npm plugin handle creating local dynamodb local server within node app. reason gives me following error. can't figure out why seems happen when running tests during specific section of tests.

it doesn't happen every time. maybe 50% or so. strange.

i have read error means starting dynamodb local server failed. have no idea why since doesn't give more details.

dynamodb local failed start code 1 { error: connect econnrefused 127.0.0.1:8000     @ object.exports._errnoexception (util.js:1012:11)     @ exports._exceptionwithhostport (util.js:1035:20)     @ tcpconnectwrap.afterconnect [as oncomplete] (net.js:1080:14)   message: 'connect econnrefused 127.0.0.1:8000',   code: 'networkingerror',   errno: 'econnrefused',   syscall: 'connect',   address: '127.0.0.1',   port: 8000,   region: 'us-west-2',   hostname: 'localhost',   retryable: true,   time: 2016-09-13t03:26:05.804z } 

oh , here code create server.

    dynamodblocal.start({port : dbport, /* port listen on. default: 8000 */          cors : '*', /* enable cors support (cross-origin resource sharing) javascript. must provide comma-separated "allow" list of specific domains. default setting cors asterisk (*), allows public access. */          inmemory : false, /* dynamodb; run in memory, instead of using database file. when stop dynamodb;, none of data saved. note cannot specify both dbpath , inmemory @ once. */          dbpath : __dirname + '/dynamodb/', /* directory dynamodb write database file. if not specify option, file written current directory. note cannot specify both dbpath , inmemory @ once. path, current working directory <projectroot>/node_modules/dynamodb-localhost/dynamob. example create <projectroot>/node_modules/dynamodb-localhost/dynamob/<mypath> should specify '<mypath>/' forwardslash @ end. */          shareddb : false, /* dynamodb use single database file, instead of using separate files each credential , region. if specify shareddb, dynamodb clients interact same set of tables regardless of region , credential configuration. */          delaytransientstatuses : false, /* causes dynamodb introduce delays operations. dynamodb can perform tasks instantaneously, such create/update/delete operations on tables , indexes; however, actual dynamodb service requires more time these tasks. setting parameter helps dynamodb simulate behavior of amazon dynamodb web service more closely. (currently, parameter introduces delays global secondary indexes in either creating or deleting status.) */          optimizedbbeforestartup : true /* optimizes underlying database tables before starting dynamodb on computer. must specify -dbpath when use parameter. */         }); 

any ideas?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -