Node.js 尝试使用jsreport时,EConnReflection
以下代码:Node.js 尝试使用jsreport时,EConnReflection,node.js,jsreport,Node.js,Jsreport,以下代码: var output = '<p>Hello</p>'; require("jsreport").render({ template: { content: output } }).then(function(out) { out.result.pipe(res); }); }); 我相信这是因为它无法连接到内部jsreport服务器,但不知道为什么。你知道如何调试它或者为什么会这样吗 我们将嵌入式jsreport更
var output = '<p>Hello</p>';
require("jsreport").render({
template: {
content: output
}
}).then(function(out) {
out.result.pipe(res);
});
});
我相信这是因为它无法连接到内部jsreport服务器,但不知道为什么。你知道如何调试它或者为什么会这样吗 我们将嵌入式jsreport更改为独立jsreport。因此,我们使用远程客户端连接到这个独立实例。现在它工作了!我不知道为什么。应用程序尝试使用的端口已在使用中…我将端口号更改为未使用的端口号,但没有任何帮助。
Error: { [Error: Error during rendering report: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }