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.
Jan Blaha
@admin
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