sidecar icon indicating copy to clipboard operation
sidecar copied to clipboard

Getting this weird error on Browsershot. Works fine on staginng ,but not live

Open aligajani opened this issue 2 months ago • 1 comments

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)

aligajani avatar Apr 30 '24 18:04 aligajani

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.

drjdr avatar May 01 '24 08:05 drjdr