Hello,
We are calling reports from client this way:
var request = require("request");
...
var option = {
method: 'POST',
uri: 'jsReportServer/api/report',
body: { "template": { "name": myTemplate }, "data": myData},
json: true,
encoding: null,
timeout: 3000
};
request(option, function (error, res, reportContent) {
...
This report myTemplate is complex and myData is large. Hence the report rendering takes more than 3min20s to complete. This time is too large for the "request" module for which the timeout option is only taken into account for the initial connection to jsReportServer wich is quick enough.
For this report we get this error:
Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at TLSWrap.onread (net.js:615:25)
[stack]: ←[32m'Error: read ECONNRESET\n at _errnoException (util.js:1022:11)\n at TLSWrap.onread (net.js:615:25)'←[31m,
[message]: ←[32m'read ECONNRESET'←[31m,
code: ←[32m'ECONNRESET'←[31m,
errno: ←[32m'ECONNRESET'←[31m,
syscall: ←[32m'read'←[31m }] ←[39m
But I did not found a way to tell request a "read timeout" large enough to wait for large report rendering.
I am sure that we are not the only ones that catch this issue. Is there a solution for this?
Thanks!
Note: we did buy a support plan but don't know how to contact support staff directly.