I can confirm wIth the new update to 4.15.0-full the error disappeared.
SimonHenz97
@SimonHenz97
Posts made by SimonHenz97
-
RE: Update to jsreport 4.14.1 / 4.14.2 (full) results in puppeteer errorposted in general forum
-
Update to jsreport 4.14.1 / 4.14.2 (full) results in puppeteer errorposted in general forum
Hello,
one of our customers reported some issues updating to the newer Versions from 4.13.0-full using docker.
We do have the same docker setup on everyone of our customers but for some reason they get the error below.
Any idea what might have caused this? reverting back to 4.13.0-full and everything works again.
Here is a snippet from our environments
environment: TZ: Europe/Berlin # Core httpsPort: 443 workers_numberOfWorkers: ${WORKERS} trustUserCode: "true" certificate_key: /certs/${SSL_KEY} certificate_cert: /certs/${SSL_CERT} licenseKey: ${JSREPORT_LICENSE} extensions_authentication_admin_username: ${REPORT_USER} extensions_authentication_admin_password: ${REPORT_PASS} extensions_authentication_cookieSession_secret: ${COOKIE_SECRET} extensions_encryption_secretKey: ${ENCRYPT_SECRET} extensions_encryption_enabled: "true" store_provider: mongodb blobStorage_provider: mongodb extensions_mongodb-store_address: db extensions_mongodb-store_databaseName: std extensions_mongodb-store_username: ${MONGO_USER} extensions_mongodb-store_password: ${MONGO_PASS} extensions_mongodb-store_connectOptions_authSource: admin # Chrome chrome_launchOptions_args: --no-sandbox, --disable-dev-shm-usage, --disable-gpu extensions_sample-template_createSamples: "false" -
RE: Customer constrains force us to manually import npm packagesposted in general forum
After some trial and error I managed to get it running.
I just needed to bundle the node only version of the package (@bwip-js/node)
then it worked -
Customer constrains force us to manually import npm packagesposted in general forum
Hello,
due to some constraints we are unable to download npm packages at a customers system, we circumvented that issue by injecting the package in the docker image before we send it to the customer, but that solution won't work anymore because they now require us to send non modified images.
So what I tried was bundling the package (https://www.npmjs.com/package/bwip-js) myself and creating a minified version I put inside jsreport as a asset.
I then tried importing it into my code using
const bwipjs = await jsreport.assets.require('/shared/packages/bwipjs.js')
which resulted in a bunch of errors.
I just wanted to ask if that is the usual way to import such packages into the code or are there better ways?Thanks for your help.
-
Using Handlebars `@ index` inside a componentposted in general forum
Hey, I'm currently trying to create a Footer component using a Wrapper
(example here: https://playground.jsreport.net/w/SimonHenz97/xUvBgfdJ)The Issue is I'm using a #each inside the component, but the children don't have access to it I think it loses the context of
4when "inserting" the children, is there a way to modify my code to give access to the4? -
RE: Differences in PDF generated by Docker Image 4.7.0 and 4.7.0-fullposted in general forum
Yes it looks like that was the issue, the required fonts were not embeeded in the pdf so when converting to svg they couldn't be found.
After adding the fonts to the image everything works.
Thank you -
Differences in PDF generated by Docker Image 4.7.0 and 4.7.0-fullposted in general forum
Hey, do to compatibility issues our company converts some pdf to svg to show them on specific devices.
We now realized that pdfs generated with the image 4.7.0 and 4.7.0-full have differences that disrupt the conversion process?
4.7.0 PDFs don't show text after converting, 4.7.0-full do show the text as expected.Is there a certain npm package that needs to be added for the pdf to be generated differently?
for some permission reasons I cannot add the pdf or svg files for more context. -
RE: Error trying to create new usersposted in general forum
Update: I completely forgot to mention how we deploy the application.
Now we are using the included docker image for version 4.7.0 to ship the app.running the app localy creating, editing and logging in as the api user works, but inside the docker container we get the same
TypeError: Cannot read properties of undefined (reading 'complexType')
Maybe because we are using a PostgresDB with the container instead of fs.We also ran into the issue of chrome-pdf timeouts, which somehow got fixed using the 4.7.0-full image instead, the api issue persists.
-
RE: Error trying to create new usersposted in general forum
Ok yeah that bugfix did it, luckily we can upgrade to 4.7.0.
-
RE: Error trying to create new usersposted in general forum
I just looked at the changelog
With Version 4.6.0 there is a bugfix concerning this scenario, I will test that.