sidecar
sidecar copied to clipboard
Getting this weird error on Browsershot. Works fine on staginng ,but not live
Hammerstone\Sidecar\Exceptions\LambdaExecutionException: Lambda Execution Exception for Wnx\SidecarBrowsershot\Functions\BrowsershotFunction: "Command failed: node ./browser.cjs '-f file:///tmp/browsershot.js'
TargetCloseError: Protocol error (Page.navigate): Target closed
at CallbackRegistry.clear (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:146:36)
at CDPSessionImpl._onClosed (/opt/nodejs/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:500:25)
Seems like the underlying lambda layer of browsershot has changed for this package
- Upgrade your sidecar and sidecar-browsershot packages in composer
- in your local .env file, make sure you change the APP_ENV to the evironment you want to fix (staging / production / live)
- Run
php artisan sidecar:deploy --activate
again, this should deploy a new version of the lambda function that fixes the issue.