Payload太大的实体添加错误node.js

时间:2018-01-25 08:34:35

标签: node.js elasticsearch

我正在node.js进行弹性搜索。当我尝试使用node.js在弹性搜索中添加我的用户时,我始终收到以下异常。有一点很重要,即15000个用户成功更新,但当用户限制从15000增加时,我收到来自node.js的以下异常

    'PayloadTooLargeError: too many parameters\n    
at queryparse (/home/rizwan/php/elastic-search-node/node_modules/body-parser/lib/types/urlencoded.js:151:13)\n   
 at parse (/home/rizwan/php/elastic-search-node/node_modules/body-parser/lib/types/urlencoded.js:75:9)\n   
 at /home/rizwan/php/elastic-search-node/node_modules/body-parser/lib/read.js:121:18\n    
at invokeCallback (/home/rizwan/php/elastic-search-node/node_modules/raw-body/index.js:224:16)\n    
at done (/home/rizwan/php/elastic-search-node/node_modules/raw-body/index.js:213:7)\n    
at IncomingMessage.onEnd (/home/rizwan/php/elastic-search-node/node_modules/raw-body/index.js:273:7)\n   
 at emitNone (events.js:106:13)\n    at IncomingMessage.emit (events.js:208:7)\n   
 at endReadableNT (_stream_readable.js:1055:12)\n    
at _combinedTickCallback (internal/process/next_tick.js:138:11)\n    
at process._tickCallback (internal/process/next_tick.js:180:9)'

0 个答案:

没有答案