KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Export to Pdf Empty #2613

Open FIMM opened this topic on on Mar 14, 2022 - 3 comments

FIMM commented on Mar 14, 2022

Hello I am using laravel+koolreport. I have nginx proxy server running with a docker. The laravel project is running in another docker container. While trying connect to the report from nginx to larvel api routes it is conneced. But PDF is generating empty.

This is my setting ->settings(array(

            "useLocalTempFolder"=>true,
            "autoDeleteLocalTempFile"=>true,
            "phantomjs"=> config('app.koolreport_phantomjs_path'),
            "serverLocalAddress" => 'localhost',//config('app.koolreport_server_local_address'),
        ))

Please help me

Sebastian Morales commented on Mar 15, 2022

Can the docker where your phantomjs resides access your report page via http://localhost/... or https://localhost/...? Is your nginx only a proxy or a web server for your Laravel reports as well? It is noted that Export package can't work with PHP built-in server or Laravel artisan serve. Rgds,

FIMM commented on Mar 15, 2022

Yes, phantomjs is resided in same docker instance where there laravel project is running. You can consider "http://localhost". All the outside request comes to nginx proxy, and then it proxying to the docker server. For instance, the main nginx server is "https://abc.com/api/module0" that connected to the docker (i.e., here the laravel project running).

Sebastian Morales commented on Mar 16, 2022

I'm not totally clear on your setup yet. I understand your reverse proxy server running Nginx which would forward http traffic to your Laravel docker instance. But how do you run your Laravel project and with which http server on that same docker instance?

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

None