I've been trying to get CloudExport to correctly render some reports but although the PDF export does create a PDF file, the format is not as expected. I have tried using the examples as well but still have the same errors reported in nginx as follows:-
PHP message: PHP Warning: file_get_contents(http://localhost/examples/reports/cloudexport/footer_header/79f8d1792bdcb90589020c91804479f2.js): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/Projects/koolreport/cloudexport/vendor/chromeheadlessio/php-client/src/Exporter.php on line 187
PHP message: PHP Warning: file_get_contents(http://localhost/examples/reports/cloudexport/footer_header/573fba7315e0423cce17cb649db3e70b.js): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/Projects/koolreport/cloudexport/vendor/chromeheadlessio/php-client/src/Exporter.php on line 187
PHP message: PHP Warning: file_get_contents(http://localhost/examples/reports/cloudexport/footer_header/7fbbf5c44b32b33abe39f384f0594337.js): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/Projects/koolreport/cloudexport/vendor/chromeheadlessio/php-client/src/Exporter.php on line 187
The .js files are being created in the /tmp folder, but the error seems to mean that the URL path is not able to find them when generating the PDF. If I set 'useLocalTempFolder' => true', the error remains.
One of the main problems is that it seems the CSS are not being correctly applied, even though the normal view shows the page correctly.
Would appreciate some pointers. Thanks