That is what I needed to know. Thanks
Posts made by jmorrisIII
-
RE: Converting PDF for attaching to email
-
Converting PDF for attaching to email
I normal get the link from jsReport to display a PDF in a web page. I now need to take the PDF,or anything else from jsReport, and attach it to an email. I am using the function in the response to convert it to a base64 string. Is there a better way to do this? Is there an option that I could send to jsReport server to give it to me in the format I need?
client.render(payload, function(err, response) { if (err) { return deferred.reject({reason:err.message || err}) } response.body(function (body) { var pdf = body.toString('base64'); return deferred.resolve({data:pdf }) }) });
-
RE: Saving templates sometimes takes longer than it should
@bjrmatos I do have another unrelated question. Is there a quick way to delete reports found in the Reports folder other then one at a time. If I delete the ones in the data/storage directory will they be removed from the UI?
-
RE: Saving templates sometimes takes longer than it should
No problem. Not sure if the newer version helped the original save issue but I will test and let you know..Thanks for your help.
-
RE: Saving templates sometimes takes longer than it should
@bjrmatos never mind syntax change to get 'permanent-link' from v0.13.5
"options": {"saveResult" : "true" }
to
"options": {"reports": { "save": true } } -
RE: Saving templates sometimes takes longer than it should
@bjrmatos Things must have changed as far as the return type when posting the template info. Before I got back a URI like http://10.0.1.170:5000/reports/HapKLvhO0gVqckRO/content . Now I get raw pdf data. Is there a setting somewhere to get a URI?
-
RE: Saving templates sometimes takes longer than it should
I ran the ncu command and it said I was up to date. How do I update via npm?
-
RE: Saving templates sometimes takes longer than it should
The best I can tell my version is 0.13.5.I use default store. I have 10 templates.It does happen for all templates.
My prod.config.json file.{
"certificate": {
"key": "certificates/jsreport.net.key",
"cert": "certificates/jsreport.net.cert"
},
"connectionString": { "name": "fs" },
"httpPort": 5000,
"blobStorage": "fileSystem",
"phantom": {
"numberOfWorkers" : 2,
"timeout": 180000
},
"tasks": {
"numberOfWorkers" : 2,
"timeout": 10000
}
} -
RE: Saving templates sometimes takes longer than it should
I just purchased the Enterprise version a couple of days ago.
-
RE: Saving templates sometimes takes longer than it should
From error.log file.
2017-09-26T12:48:49.911Z - error: Error during processing request: http://10.0.1.156:5000/odata/templates(KzfyWJOydRZaEO9H)?studio=normal details: request aborted Error: request aborted
at IncomingMessage.onAborted (/srv/jsReport/node_modules/jsreport/node_modules/jsreport-express/node_modules/body-parser/node_modules/raw-body/index.js:269:10)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at abortIncoming (_http_server.js:280:11)
at Socket.serverSocketCloseListener (_http_server.js:293:5)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12)
2017-09-26T12:49:05.129Z - error: Error during processing request: http://10.0.1.156:5000/odata/templates(KzfyWJOydRZaEO9H)?studio=normal details: request aborted Error: request aborted
at IncomingMessage.onAborted (/srv/jsReport/node_modules/jsreport/node_modules/jsreport-express/node_modules/body-parser/node_modules/raw-body/index.js:269:10)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at abortIncoming (_http_server.js:280:11)
at Socket.serverSocketCloseListener (_http_server.js:293:5)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12)
2017-09-26T12:49:05.133Z - error: Error during processing request: http://10.0.1.156:5000/odata/templates(KzfyWJOydRZaEO9H)?studio=normal details: request aborted Error: request aborted
at IncomingMessage.onAborted (/srv/jsReport/node_modules/jsreport/node_modules/jsreport-express/node_modules/body-parser/node_modules/raw-body/index.js:269:10)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at abortIncoming (_http_server.js:280:11)
at Socket.serverSocketCloseListener (_http_server.js:293:5)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12) -
RE: Saving templates sometimes takes longer than it should
How do I check the version?
-
Saving templates sometimes takes longer than it should
More times than not when I save a template it does not save in a timely manner. After 30 seconds I press save again wait then repeat. Finally I get several taost notifications telling me it saved. The server is Ubuntu 16.04.1 LTS and node 4.2.3.Any Ideas?