puzzled-coral•2y ago
Target Closed
Crawlee is crashing is with target closed error randomly
2 Replies
puzzled-coralOP•2y ago
Error:
Code
at PuppeteerCrawler._handleFailedRequestHandler (/root/monitors/walmart/node_modules/@crawlee/basic/internals/basic-crawler.js:917:30)
at PuppeteerCrawler._requestFunctionErrorHandler (/root/monitors/walmart/node_modules/@crawlee/basic/internals/basic-crawler.js:903:20)
at async wrap (/root/monitors/walmart/node_modules/@apify/timeout/index.js:52:21)[90m {"id":"CPW7IgYWULkknps","url":"https://www.walmart.com/ip/sqk-large-plush-disney-squishmallows-winnie-the-pooh/114836532","method":"GET","uniqueKey":"https://www.walmart.com/ip/sqk-large-plush-disney-squishmallows-winnie-the-pooh/114836532"}[39m
/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:138
this._reject(callback, new Errors_js_1.TargetCloseError('Target closed'));
^
TargetCloseError: Protocol error (Network.getCookies): Target closed
at CallbackRegistry.clear (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:138:36)
at CDPSessionImpl._onClosed (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:487:25)
at Connection.onMessage (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:248:25)
at Immediate.<anonymous> (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.js:53:36)
at process.processImmediate (node:internal/timers:476:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
at PuppeteerCrawler._handleFailedRequestHandler (/root/monitors/walmart/node_modules/@crawlee/basic/internals/basic-crawler.js:917:30)
at PuppeteerCrawler._requestFunctionErrorHandler (/root/monitors/walmart/node_modules/@crawlee/basic/internals/basic-crawler.js:903:20)
at async wrap (/root/monitors/walmart/node_modules/@apify/timeout/index.js:52:21)[90m {"id":"CPW7IgYWULkknps","url":"https://www.walmart.com/ip/sqk-large-plush-disney-squishmallows-winnie-the-pooh/114836532","method":"GET","uniqueKey":"https://www.walmart.com/ip/sqk-large-plush-disney-squishmallows-winnie-the-pooh/114836532"}[39m
/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:138
this._reject(callback, new Errors_js_1.TargetCloseError('Target closed'));
^
TargetCloseError: Protocol error (Network.getCookies): Target closed
at CallbackRegistry.clear (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:138:36)
at CDPSessionImpl._onClosed (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:487:25)
at Connection.onMessage (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:248:25)
at Immediate.<anonymous> (/root/monitors/walmart/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NodeWebSocketTransport.js:53:36)
at process.processImmediate (node:internal/timers:476:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
flat-fuchsia•2y ago
Did you manage to resolve it?