May I ask what server (IIS, Apache ...) are you using to host this PDF?
Thank you!
May I ask what server (IIS, Apache ...) are you using to host this PDF?
Thank you!
Here is the generated PDF: https://www.dropbox.com/s/szn8diubiqkt8q3/Plans.pdf
We did use "pdf utils" to merge headers and footers. This PDF is hosted as a static file on IIS 8. I tried to open the file using Chrome 69.0.3497.92 and Firefox 63, and both failed.
Unfortunately it is hard to replicate the program in playground since it is connected with our local database.
Any suggestion is really appreciated.
Genhan
Hi,
We are using jsReport generating large PDF files (~7000 kb) and hosting the generated PDFs in a static folder on IIS. However, opening those PDFs always failed initially in Chrome. Here is the error message:
I have to refresh the page several time to load the PDF correctly.
Do you have any idea about the issue?
Thank you,
Genhan
Hi there,
I am wondering if jsReport will provide a patch for the following vulnerability:
Thanks!
@jan_blaha You are right. My program is not using the right configuration file. It works after I removed the old dev.config.json
and prod.config.json
.
Thank you very much!
@jan_blaha , the following is my jsreport.config.json:
{"extensions": {
"authentication": {
"cookieSession": {
"secret": "<your strong secret here>"
},
"admin": {
"username": "admin",
"password": "password"
},
"enabled": false
},
"scripts": {
"timeout": 40000,
"strategy": "http-server"
},
"sample-template": {
"createSamples": true
}
},
"httpPort": 5488,
"store": {
"provider": "fs"
},
"blobStorage": {
"provider": "fs"
},
"logger": {
"console": {
"transport": "console",
"level": "debug"
},
"file": {
"transport": "file",
"level": "info",
"filename": "logs/reporter.log"
},
"error": {
"transport": "file",
"level": "error",
"filename": "logs/error.log"
}
},
"allowLocalFilesAccess": true,
"templatingEngines": {
"timeout": 10000,
"strategy": "http-server"
},
"chrome": {
"timeout": 40000
}
}
I still see error :-(
My application is using jsReport with an existing Express app. I tried to upgrade it into version 2.1.0. Here are what I did:
let jsreport = require('jsreport')({
extensions: {
express: { app: reportingApp, server: server },
},
appPath: "/reporting"
});
jsreport.init()
.then(() => {
console.log(`JSReport instance ${process.pid} started correctly.`);
}).catch((e) => {
console.error(e);
});
app.use('/reporting', reportingApp);
After that, I ran my application and received the following error message:
Process 16352 is listening to all incoming requests
2018-06-20T22:52:17.710Z - error: Error occured during reporter init Error: options contain values that does not match the defined base root schema. schema validation errors: rootOptions.blobStorage should be object
at Reporter.init (C:\CPMS\iroot-new\cpms-reporting\node_modules\jsreport-core\lib\reporter.js:106:15)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
Error: options contain values that does not match the defined base root schema. schema validation errors: rootOptions.blobStorage should be object
at Reporter.init (C:\CPMS\iroot-new\cpms-reporting\node_modules\jsreport-core\lib\reporter.js:106:15)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
Did I miss anything?
I am planning to upgrade our jsReport from v1.x to v2.x. According to the v2.x release notes, the biggest change is using Chrome-pdf instead of Phamton-pdf as the main PDF generator.
I am wondering:
Any advice is really appreciated!