Skip to content

[Bug Report]: In API, rendering errors are uninformative #227

@kreshot

Description

@kreshot

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

No one assigned

    Labels

    T: bugFunctionality that does not work as intended/expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions