from time to time, I'm puppeteer throws following error
/home/user/development/streetmerchant/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26
throw new Error(message);
^
Error: Request Interception is not enabled!
at Object.exports.assert (/home/user/development/streetmerchant/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26:15)
at Proxy.respond (/home/user/development/streetmerchant/node_modules/puppeteer/lib/cjs/puppeteer/common/HTTPRequest.js:270:21)
at PuppeteerBlocker.onRequest (/home/user/development/streetmerchant/node_modules/@cliqz/adblocker-puppeteer/dist/cjs/adblocker.js:241:29)
at BlockingContext.onRequest (/home/user/development/streetmerchant/node_modules/@cliqz/adblocker-puppeteer/dist/cjs/adblocker.js:64:47)
at /home/user/development/streetmerchant/build/store/lookup.js:91:9
at new Promise (<anonymous>)
at handleAdBlock (/home/user/development/streetmerchant/build/store/lookup.js:69:12)
at /home/user/development/streetmerchant/build/store/lookup.js:164:23
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! streetmerchant@ start: `npm run build && node build/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the streetmerchant@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2020-12-08T17_00_39_796Z-debug.log
Expected Behavior
npm run start should run as expected
Current Behavior
from time to time, I'm puppeteer throws following error
Steps to Reproduce
npm run start
& waitEnvironment
OS: Pop!_OS 20.10 .env file:
Logs
Contents of the debug log: