Skip to content

Feature Request: Also return JS console content (at least error/warn) #1667

Closed

Description

@jschneider

Many/some pages build their content with JavaScript (layout, pagination, calculations, you name it).
When that script fails, it typically catches the error and reports it with console.error.
The conversion still returns HTTP 200.

In these cases any line in console.err indicates an error. I would like Gotenberg to return console.err + warn - and optionally console.log (optional multiplart?).
Or maybe introduce "failOnConsoleErrors" or something like that.

Activity

  1. gulien commented on Oct 25, 2026

    @gulien
    Member

    Thanks @jschneider for the suggestion! Added in 8c6abf4: the new failOnConsoleMessageTypes form field (e.g. ["error","warning"]) makes Chromium routes return a 409 listing the matching console messages. It will ship with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions