Category: snappy

Exit with code 1 due to network error: ConnectionRefusedError when generating PDF file from symfony running in Docker

I am trying to generate a pdf from a twig page by using snappy bundle with wkhtmltopdf,: $pageUrl = $command->getRouter()->generate(‘testDevis’,array(‘idDevis’=>$command->getIdDevis()),UrlGeneratorInterface::ABSOLUTE_URL); return new PdfResponse( $command->getPdfService()->getOutput($pageUrl), $nomDevis ); where $pageUrl = http://127.0.0.1:9999/test/1.I believe the problem came from Docker, where I have configured…