如NEST文档中所示,我将此代码编写为连接到elasticsearch rest api。
Authentication failed because the remote party has closed the stream
它在我的项目中运行perefct。但是,当我将项目的配置更改为SSL模式时,当我想创建索引时,我在第4行遇到了此值为2015-10-20T07:50:10.331Z worker 32 died, restarting!
2015-10-20T07:50:10.768Z starting phantom on port [12334]
2015-10-20T07:50:10.783Z starting phantom on port [12333]
2015-10-20T07:50:10.807Z starting phantom on port [12335]
2015-10-20T07:50:10.866Z Server running on port 3000
2015-10-20T07:50:10.866Z Server running on port 3000
2015-10-20T07:50:10.866Z Server running on port 3000
2015-10-20T07:50:11.018Z starting phantom on port [12336]
2015-10-20T07:50:11.043Z Server running on port 3000
module.js:338
throw err;
^
Error: Cannot find module 'weak'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at new D (C:\prerender-master\node_modules\phantom\node_modules\dnode\index.js:28:20)
at module.exports (C:\prerender-master\node_modules\phantom\node_modules\dnode\index.js:8:12)
at C:\prerender-master\node_modules\phantom\phantom.js:159:13
at Server.handler (C:\prerender-master\node_modules\phantom\node_modules\shoe\index.js:22:9)
at emitOne (events.js:77:13)
at Server.emit (events.js:169:7)
2015-10-20T07:50:12.209Z worker 34 died, restarting!
的错误。有什么问题?