无法在我自己的Elasticsearch服务器上触发许多请求

时间:2018-08-09 03:39:23

标签: node.js elasticsearch

在使用Elasticsearch进行映射之后,我尝试将所有当前数据更新到Elasticsearch服务器,但是我只能发送一些请求,直到出现这种错误为止

{ RequestError: Error: read ECONNRESET
    at new RequestError (/Users/sompopkulapalanont/Projects/djjam/node_modules/request-promise-core/lib/errors.js:14:15)
    at Request.plumbing.callback (/Users/sompopkulapalanont/Projects/djjam/node_modules/request-promise-core/lib/plumbing.js:87:29)
    at Request.RP$callback [as _callback] (/Users/sompopkulapalanont/Projects/djjam/node_modules/request-promise-core/lib/plumbing.js:46:31)
    at self.callback (/Users/sompopkulapalanont/Projects/djjam/node_modules/request/request.js:185:22)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestError (/Users/sompopkulapalanont/Projects/djjam/node_modules/request/request.js:877:8)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at Socket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
  name: 'RequestError',
  message: 'Error: read ECONNRESET',
  cause: { Error: read ECONNRESET
    at _errnoException (util.js:992:11)
    at TCP.onread (net.js:618:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' },
  error: { Error: read ECONNRESET
    at _errnoException (util.js:992:11)
    at TCP.onread (net.js:618:25) code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' },
  options: 
   { method: 'POST',
     uri: 'http://{myIP}//elasticsearch/tracks/track/1MbHFNclRIdvqp5I0RyOpi',
     auth: 
      { username: 'user',
        password: 'UmjZQjwyw5HQ',
        user: 'user',
        pass: 'UmjZQjwyw5HQ' },
     body: 
      { id: '1MbHFNclRIdvqp5I0RyOpi',
        name: 'Shorty George',
        bpm: 211.336,
        duration: 161467,
        year: '2015',
        tags: [Array],
        artists: [Array] },
     json: true,
     callback: [Function: RP$callback],
     transform: undefined,
     simple: true,
     resolveWithFullResponse: false,
     transform2xxOnly: false },
  response: undefined }

我该怎么办?我用bitnami使用了Google Cloud + elasticsearch

0 个答案:

没有答案