-
Notifications
You must be signed in to change notification settings - Fork 236
Open
Labels
T: bugFunctionality that does not work as intended/expectedFunctionality that does not work as intended/expected
Description
Environment
Carbone Version: 4.25.6
Node Version: Node 18
Desktop OS: Ubuntu 25.04
Expected Behaviour
Using NodeJS examples from https://carbone.io/documentation/quickstart/integration/for-developers.html:
`
carboneSDK.setOptions({
carboneUrl: 'http://localhost:4000/'
});
const carboneData = {
data: variables,
convertTo: 'pdf'
};
const carboneStream = carboneSDK.render(
'myTemplate.odt',
carboneData,
{ headers: { 'carbone-template-delete-after': '0' } }
);
carboneStream.on('error', (err) => {
console.error(`Carbone error ${err}`);
});
carboneStream.on('close', () => {
console.log(`Finished`);
});
... doing stuff with the stream ...
If there's an error in the template, the error should be reported to the error handler. On the console I should get something like:Carbone error Error: Formatter "cumCount" is disabled in the Community Edition.`
Actual Behaviour
No error is reported to the error handler. I get:
Carbone error
I can only see the error by running docker logs on the carbone container.
Metadata
Metadata
Assignees
Labels
T: bugFunctionality that does not work as intended/expectedFunctionality that does not work as intended/expected