Hello i find out that is when i save this image with .jpeg. And use jsreport to show it. It's cause the error.
Ngô Duy
@Ngô Duy
Posts made by Ngô Duy
-
RE: Root cause Error: incorrect header check
-
RE: Report with many images
Gabriel Dehner:
I changed the "Content-Type: application / json"Hello, can u tell me exactly where u change ? I have the same issue.
-
LIMIT REQUEST waiting
hello.
I have a config file as below. How can i set limit request handling. Example 3 request per seconds. Or 3 request in queue ?
{
"httpPort": 5488,
"reportTimeout": 600000,
"enableRequestReportTimeout":true,
"certificate": {
"key": "cert.key",
"cert": "cert.crt"
},
"logger": {
"console": { "transport": "console", "level": "error" }
},
"allowLocalFilesAccess": true,
"store": {
"provider": "memory"
},
"blobStorage": {
"provider": "memory"
},
"templatingEngines": {
"numberOfWorkers" : 8,
"strategy": "http-server"
},
"extensions": {
"authentication": {
"cookieSession": {
"secret": "dainb@0986301253@cenTos",
"cookie": {
"secure": true
}
},
"admin": {
"username": "admin",
"password": "jsreport@5488"
},
"enabled": true
},
"chrome-pdf": {
"timeout": 600000,
"strategy": "chrome-pool",
"numberOfWorkers": 8
}
}
} -
RE: JSreport stuck by a lot of requests
We push in html around 500-700kb. Thank you. I can handle from there.
-
RE: JSreport stuck by a lot of requests
OK so do u have any comment about max request jsreport can handle or something ?
Is it related to CPU or RAM ? -
JSreport stuck by a lot of requests
Hello.
I was trying to deploy jsreport in Docker.
https://drive.google.com/file/d/17OXnn7hso-1RfwZcHa_LbVDgzEuzANSX/view?usp=sharingDeployment file config in the link.
The problem is :
When a large amount of requests are sent to my server (pod) running jsreport. The request is stuck, the log is stopped. And no more requests can be processed.My system:
2.2ghz, SSD
Scale 2 pods. Limited to 6 CPU cores, up to 16 GB ram.What can I do to optimize the smooth running?
I can accept some tweaks in the configuration for the best. I'm not asking you to simulate the problem. Please help me.
-
RE: Create JSreport client server
OK. Now i understand that pkg not resolve my problem.
I tried to download this one (https://github.com/jsreport/jsreport/releases) but it cant start. When i open it open command line window and shutdown (exit) imediately. Is that any special in there ?
-
Create JSreport client server
Hello.
I create jsreport to generate PDF is OK now.
I use PKG npm newest version to create EXE file that run a jsreport server.
with command: pkg server.jsserver.js
const jsreport = require('jsreport')() const fs = require('fs') if (process.env.JSREPORT_CLI) { // export jsreport instance to make it possible to use jsreport-cli module.exports = jsreport } else { jsreport.init().then(() => { // running }).catch((e) => { // error during startup console.error(e.stack) fs.writeFileSync("log.txt", e.stack) process.exit(1) }) }
jsreport.config.json
{ "httpPort": 5488, "store": { "provider": "memory" }, "blobStorage": { "provider": "memory" }, "logger": { "console": { "transport": "console", "level": "debug" } }, "allowLocalFilesAccess": true, "reportTimeout": 600000, "templatingEngines": { "numberOfWorkers": 4, "strategy": "http-server" }, "chrome": { "launchOptions": { "args": [] } }, "extensions": { "authentication": { "cookieSession": { "secret": "secret_string" }, "admin": { "username": "admin", "password": "jsreport" }, "enabled": true }, "scripts": { "strategy": "http-server" } } }
The problem is it's ok to start.
In the image:
1 -> successful init
2 -> error i got when create PDF with server running by file created by PKG
(with server running by node server.js its OK)Anyone have an experiment about this issue ?