Unable to run crawlee in aws lambda (Protocol error (Target.setAutoAttach): Target closed)
I am trying to run crawlee on aws lambda but getting this error message:
Reclaiming failed request back to the list or queue. Protocol error (Target.setAutoAttach): Target closed.
chromium version: 109
node version: 16
code:
5 Replies
absent-sapphire•3y ago
check if this helps - https://github.com/apify/crawlee/issues/702
GitHub
Error Running in AWS Lambda via chrome-aws-lambda (Error: spawn ps ...
Now describe the bug When running in AWS Lambda using chrome-aws-lambda, I'm hitting an Error: spawn ps ENOENT error. Im just trying to run a simple job based on the HackerNews example. Err...
fair-roseOP•3y ago
No it did not work for me.
I am running crawlee on nodejs v16 and for that chrome-aws-lambda is not supported. Hence I have added @sparticuz/chromium which supports node v16
metropolitan-bronze•3y ago
is launcher: puppeteer referring to an existing puppeteer instance/browser session
fair-roseOP•3y ago
Sorry did not get you what do you mean by that? Are you able to run crawlee in aws lambda?
absent-sapphire•3y ago
@pmt11 Not browser, it should be
puppeteer
launcher variable