I'm sorry but posting here your domain-specific code won't help us. We need you to replicate the problem in a minimal repository or in playground.
Posts made by admin
-
RE: jsreport: Report timeout when rendering 'comprovativo_salario' using Handlebars
-
RE: jsreport: Report timeout when rendering 'comprovativo_salario' using Handlebars
You mentioned report timeout, but the playground demo is just single page and doesn't timeout?
-
RE: jsreport: Report timeout when rendering 'comprovativo_salario' using Handlebars
It can be problem with your code. Please try to share the playground demo.
https://playground.jsreport.net/ -
RE: Jsreport .net configuration with aws lambda
Are you sure this is caused by the jsreport packages? I'm not aware there would be writes to the
/var/task/var
from jsreport or chrome.Anyway, try to set the jsreport temp directory explicitely to
/tmp/something
.new LocalReporting().TempDirectory("/tmp/something")
-
RE: Rendering issue with v3 and v4 , working fine with v2
So its the problem with phantomjs... You may need to download and use the phantomjs binary compiled for amazon linux.
I see the mention this one here
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
You would replace the binary in the zip package you upload to aws. -
RE: Rendering issue with v3 and v4 , working fine with v2
These aren't stdout logs but an error message...
Try to isolate the problem, are you able to render an html template? The problem can be that the phantomjs binary isn't working in the aws lambda environment.
-
RE: Rendering issue with v3 and v4 , working fine with v2
The
phantom-pdf
recipe is still supported from us. However, the underlying technology phantomjs is archived for 2 years. Thus the recipe is deprecated and its recommended to switch tochrome-pdf
.The migration flow depends. You need to test yourself, because the sizes can vary and you may need to adapt your styles or use
zoom
css.The chrome needs extra binary for aws lambda. You better follow our official tutorial
https://jsreport.net/learn/aws-lambda-serverless -
RE: Rendering issue with v3 and v4 , working fine with v2
Thanks for the code, but we are still missing many pieces that we need to help you...
Can you run the code with env variableDEBUG=jsreport
and share the stdout output?Btw, do you need to use phantomjs which has been deprecated for a long time? The
chrome-pdf
should be the replacement. -
RE: Error trying to create new users
So your api user looks like this right? Did you create it using jsreport studio?
Please also share..
what jsreport version do you use?
what sql store driver and what version do you use? -
RE: Scheduling on relative days?
This will be supported in the next release 4.8.0. It is likely coming the next week.
Something like this should work then0 0 * * 1#1
Then you can find the latest docs for cron expressions jsreport supports
https://github.com/harrisiirak/cron-parser -
RE: How to create PDF Form similar to https://playground.jsreport.net/w/admin/lbhULCsP
Could you please elaborate more?
The playground workspace you shared works fine in jsreportonline -
RE: Timeout Issue When Generating Large PDFs (On-Premise, Enterprise License)
What if you run the same request in the browser/studio? Does that timeout after 30s as well?
Don't you have on the way to jsreport some kind of proxy/load balancer/web server that could have the 30s timeout ?
Can you try the same with the latest jsreport 4.7.0?
-
RE: Timeout Issue When Generating Large PDFs (On-Premise, Enterprise License)
It could be a problem with your client call. How do you make the API request? Don't you need to add a timeout config there?
-
RE: Not allowed to load local resource: blob on android chrome when running reports.
Ok, thank you. I've submitted this to the backlog so we can keep track of it.
https://github.com/jsreport/jsreport/issues/1211 -
RE: How to display footer on every page and show additional content only on the last page using jsreport with NestJS integration
Unfortunately, the browsers have still very poor support for CSS-paged media.
So we typically solve such problems as you describe with pdf utils or with javascript.Here is an example of how you can make the footer on the last page different.
https://playground.jsreport.net/w/anon/h3amrdZKThe first-page header content could be just moved to the main content to avoid problems with different header sizes.
Hopefully this helps.
-
RE: Not allowed to load local resource: blob on android chrome when running reports.
I see the same on android. While chromium on desktop or iOS has no problems. Maybe it's some kind of specific Android chromium issue which fails to work with
URL.createObject
.Just to give this some kind of priority for us... Why does this bother you? I mean why do you use jsreport studio on phone, where you can hardly code something? What is your use case? Thank you
-
RE: Schema configuration works partially in jsreport-postgres-store extension
Thank you for the bug report. I've now pushed the fix to the master. We should ship it during the next few weeks along with other improvements like automatic index creations.
-
RE: 504 Gateway Time-out
I apologize for the inconvenience, we have some problems with playground hosting. The service is now back online, however, we still haven't discovered the real cause of the failures.
Please note playground shouldn't be used in production and it is just a fiddling tool used by the public audience.
Anyway, thanks for giving us notice.
-
RE: How to display footer on every page and show additional content only on the last page using jsreport with NestJS integration
You are missing
mergeWholeDocument:true
in the template'spdfOperations
.When you have something working in full jsreport but not in your code, the easiest way to find out the difference is to open the entity definition in studio
You would find there you are missing
"mergeWholeDocument": true
pdfOperations": [ { "type": "merge", "mergeWholeDocument": true, .... } ]
-
RE: Foreach Loop using handlebars vertical column wise
The values you have in the A column should be shifted down?
Could you share a sample how the final output should look like?
You can upload it to playgorund, here, or anywhere...