Skip to content

Misleading error messages #11

Description

@stefanzilske

When I try to generate HTML using the test api-key, the error I get is always:

io.carbone.CarboneException: Carbone SDK render error: render_id empty

eventhough the internal error message from the client is:

With a test key, you can only convert in the following format (pdf)

This happens because the CarboneServices always return the message I get when the request was not successful:

        if (!resp.isSuccess()) {
            throw new CarboneException("Carbone SDK render error: render_id empty");
        }

I'd appreciate if the actual message was returned by the SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions