Thanks for this.
I noticed the same on a report we haven't had time to migrate to jsReport 3.
Your solution worked, but I moved the report to our v3 server instead. This works with HighCharts 11.
I'm sorry for not getting back to you sooner. With a massive implementation here in South Africa, The "\n" works; however, it is one endless line and kind of not pretty. :)
Let me give this a go today: Adding it to the server.js
"ssl": {
rejectUnauthorized: true,
ca: fs.readFileSync('/path/to/rds-combined-ca-bundle.pem').toString()
You just need to query sql and convert the buffer from the output to the base64.
The nodejs lib you use likely returns nodejs buffer as the value of the binary column.
So you need to convert it to the base64 string using abuffer.toString('base64').
In your case, the req.data.logo will be something like aBff2515AasVsdEF in the end.
You can take the code also out of the jsreport and troubleshoot it in the plain nodejs.
The jsreport v4 uses a different user code sandboxing strategy. The change was required because the v3 sandboxing has critical vulnerabilities. Read the full story here https://jsreport.net/blog/jsreport-400-release
The v4 sandboxing strategy brings also some limitations as the tradeoff to the safe code evaluation. One of the limitations is the one you have hit - you can't use deprecated nodejs domains.
What to do now...
You can avoid using nodejs domains if it's possible.
Consider if you need to use the safe code sandbox evaluation. Safe sandboxing is required only in case you run reports developed by external users. If you don't need to use sandboxing, simply disable it with config "trustUserCode:true".
@admin I think I get it now. I am able to recreate what my client was expecting with the following code. It needed a body property with the data and a headers property with a permanent-link property. Thanks