bentonam / fakeit

Generates JSON documents based on models defined in YAML and adds them to a Couchbase Bucket
MIT License
86 stars 21 forks source link

Sync-gateway data dump throw unhandled promise exception #152

Open shashanktomar opened 7 years ago

shashanktomar commented 7 years ago

While dumping data to sync-gateway, i am getting this error:

[18:37:41] ✖ error: { Error: connect ECONNRESET 127.0.0.1:4985
    at Object.exports._errnoException (util.js:1018:11)
    at exports._exceptionWithHostPort (util.js:1041:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)
  code: 'ECONNRESET',
  errno: 'ECONNRESET',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 4985 }
(node:63267) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: connect ECONNRESET 127.0.0.1:4985

Some of the documents are missed because of this.

alburdette619 commented 7 years ago

I am having this same issue. I frequently get cross reference errors in my application due to documents not getting written.

tjbenton commented 7 years ago

This might be happening because too many files are trying to write to the server at a time. Try running your fakeit command with --limit 5. This would be a temp fix until we can fix the real issue

alburdette619 commented 7 years ago

154