grpc.credentials.createSsl(root_cert) 导致错误:14 不可用:grpc-node.js 中未建立连接
var root_cert = readFileSync(__dirname +
'/credentials/localhosttest.cer');
var client = new PSC_PatientProto.service(target,grpc.credentials.createSsl(root_cert));
上面的代码导致以下错误
error in call
Error: 14 UNAVAILABLE: No connection established at
Object.callErrorFromStatus (C:\acp-electron-shell\electron-
app\node_modules\@grpc\grpc-js\build\src\call.js:31:26) at
Object.onReceiveStatus (C:\acp-electron-shell\electron-
app\node_modules\@grpc\grpc-js\build\src\client.js:180:52)
var root_cert = readFileSync(__dirname +
'/credentials/localhosttest.cer');
var client = new PSC_PatientProto.service(target,grpc.credentials.createSsl(root_cert));
the above code is resulting in the below error
error in call
Error: 14 UNAVAILABLE: No connection established at
Object.callErrorFromStatus (C:\acp-electron-shell\electron-
app\node_modules\@grpc\grpc-js\build\src\call.js:31:26) at
Object.onReceiveStatus (C:\acp-electron-shell\electron-
app\node_modules\@grpc\grpc-js\build\src\client.js:180:52)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论