Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live site pdf zero #8

Closed
anditsung opened this issue Apr 15, 2021 · 6 comments
Closed

live site pdf zero #8

anditsung opened this issue Apr 15, 2021 · 6 comments

Comments

@anditsung
Copy link

i install it on live site. but after the download the size is zero.

@Padocia
Copy link
Owner

Padocia commented Apr 15, 2021

do you have this problem only on live site ? is it working fine in development environment ?

@anditsung
Copy link
Author

Yes. Only happen on live site. Dont have any problem on development

@Padocia
Copy link
Owner

Padocia commented Apr 15, 2021

did you run npm install puppeteer on live server ?

@anditsung
Copy link
Author

yes, already install puppeteer. but after produce will have zero pdf.

@Padocia
Copy link
Owner

Padocia commented Apr 15, 2021

email me at zakaria.tayebbey@gmail.com

@anditsung
Copy link
Author

anditsung commented Apr 16, 2021

mail you the file that was generated?

--
i have mail the file from live and dev

try to run it using thinker

Psy Shell v0.10.8 (PHP 7.4.16 — cli) by Justin Hileman

Spatie\Browsershot\Browsershot::url('https://nova.laravel.com')->save('test.pdf')
Spatie\Browsershot\Exceptions\CouldNotTakeBrowsershot with message 'For some reason Chrome did not write a file at test.pdf.'

got this exception

on live server need to run this using using global and link that package

install puppeteer using this command
npm install -g puppeteer
then link global package to current project
npm link puppeteer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants