hajareshyam / pdf-creator-node

This package is used to generate HTML to PDF in Nodejs
MIT License
238 stars 79 forks source link

Upstream prematurely closed connection while reading response header from upstream #117

Closed rudyraharjo closed 7 months ago

rudyraharjo commented 7 months ago

hi project express I got an error which was immediately forwarded to nginx. When I checked my log the code stopped when I actually wanted to run generate PDF.

On my server run ubuntu v16 pm2+nginx.

what is the problem with pm2?

The solution I just did was to add client_max_body 20m, proxy_read_timeout 300s, client_connect_timeout 300s to the nginx config file.

Btw in local development is working fine

Thank.

rudyraharjo commented 7 months ago

process.env.OPENSSL_CONF = '/dev/null';