Getting Error while converting PDF #855
rajcracker
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
{ "error": "The command "PATH=$PATH:/usr/bin/node NODE_PATH=
npm root -g
node '/var/www/html/vendor/spatie/browsershot/src/../bin/browser.cjs' '{"url":"https:\/\/raj.localhost\/api\/commitment\/3057\/report?locale=en-US","action":"pdf","options":{"path":"example.pdf","args":[],"viewport":{"width":800,"height":600},"executablePath":"\/usr\/bin\/chromium-browser"}}'" failed.\n\nExit Code: 1(General error)\n\nWorking directory: /var/www/html/public\n\nOutput:\n================\n\n\nError Output:\n================\nError: Failed to launch the browser process!\n\nCommand '/usr/bin/chromium-browser' requires the chromium snap to be installed.\nPlease install it with:\n\nsnap install chromium\n\n\n\nTROUBLESHOOTING: https://pptr.dev/troubleshooting\n\n at Interface.onClose (/var/www/html/node_modules/@puppeteer/browsers/lib/cjs/launch.js:310:24)\n at Interface.emit (node:events:525:35)\n at Interface.close (node:internal/readline/interface:533:10)\n at Socket.onend (node:internal/readline/interface:259:10)\n at Socket.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n" }Beta Was this translation helpful? Give feedback.
All reactions