Skip to content

PrzemoRevolve/gotenberg-header-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

This repo serves as an example for reproducing bug/weird behaviour I've noticed in Gotenberg:5.

Prerequisites

Download a docker image for gotenberg:5 and run it locally

Steps to reproduce

  1. Run Gotenberg at <GOTENBERG_URL>
  2. call convert/html with the index.html and header.html e.g., which is successful:
    curl --request POST \                                                                    
        --url http://localhost:3000/convert/html \
        --header 'Content-Type: multipart/form-data' \
        --form [email protected] \
        --form [email protected] \
        -o result.pdf
  3. Add any character to the header file, and call curl again - now it fails with error message printing page to PDF: cdp.Page: PrintToPDF: rpcc: message too large (increase write buffer size or enable compression)
  4. Leave that additional character in the header.html, but now attach additionally footer.html, and it will pass:
    curl --request POST \                                                                    
        --url http://localhost:3000/convert/html \
        --header 'Content-Type: multipart/form-data' \
        --form [email protected] \
        --form [email protected] \
        --form [email protected] \
        -o result.pdf
  5. add any character to the footer.html and call thte curl again - it fails with the same error message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages