You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command "node "D:\php_projects\pdfshot\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""https:\/\/www.urdupoint.com\/daily\/livenews\/2024-04-30\/news-4000414.html"",""action"":""pdf"",""options"":{""path"":""D:\\php_projects\\pdfshot\\storage\\out.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600}}}"" failed. Exit Code: 1(General error) Working directory: D:\php_projects\pdfshot\public Output: ================ Error Output: ================ ProtocolError: Protocol error (IO.read): Read failed at <instance_members_initializer> (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:93:14) at new Callback (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:97:16) at CallbackRegistry.create (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:22:26) at Connection._rawSend (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Connection.js:80:26) at CdpCDPSession.send (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\CDPSession.js:66:33) at Object.pull (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\util.js:252:63) at ensureIsPromise (node:internal/webstreams/util:185:19) at readableStreamDefaultControllerCallPullIfNeeded (node:internal/webstreams/readablestream:2358:5) at node:internal/webstreams/readablestream:2449:7 ERROR: The process with PID 21340 (child process of PID 2020) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 2020 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 14420 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 7432 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 3332 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 8940 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 8552 (child process of PID 17196) could not be terminated. Reason: There is no running instance of the task.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Plateform:
windows 11
laragon with
PHP 8.1.10
Node v-18
I made a simple script for testing purpose.
Here is the Code
`$storage_path = storage_path("out.pdf");
`
Here is the .env file variables:
BROWSERSHOT_NODE_BINARY="Path/to/nodejs" BROWSERSHOT_NPM_BINARY="Path/to/nodejs" BROWSERSHOT_CHROME_BIN="Path/to/Google/Chrome/Application"
I am getting the following error:
The command "node "D:\php_projects\pdfshot\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""https:\/\/www.urdupoint.com\/daily\/livenews\/2024-04-30\/news-4000414.html"",""action"":""pdf"",""options"":{""path"":""D:\\php_projects\\pdfshot\\storage\\out.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600}}}"" failed. Exit Code: 1(General error) Working directory: D:\php_projects\pdfshot\public Output: ================ Error Output: ================ ProtocolError: Protocol error (IO.read): Read failed at <instance_members_initializer> (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:93:14) at new Callback (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:97:16) at CallbackRegistry.create (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\CallbackRegistry.js:22:26) at Connection._rawSend (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\Connection.js:80:26) at CdpCDPSession.send (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\CDPSession.js:66:33) at Object.pull (D:\php_projects\pdfshot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\util.js:252:63) at ensureIsPromise (node:internal/webstreams/util:185:19) at readableStreamDefaultControllerCallPullIfNeeded (node:internal/webstreams/readablestream:2358:5) at node:internal/webstreams/readablestream:2449:7 ERROR: The process with PID 21340 (child process of PID 2020) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 2020 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 14420 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 7432 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 3332 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 8940 (child process of PID 8552) could not be terminated. Reason: The operation attempted is not supported. ERROR: The process with PID 8552 (child process of PID 17196) could not be terminated. Reason: There is no running instance of the task.
Kindly guide in this regard.
Beta Was this translation helpful? Give feedback.
All reactions