I tried to activate task runner via env var “N8N_RUNNERS_ENABLED=true”. But when this task runner is activated I have the following error in my code node that use puppeteer
For info, I update my Dockerfile to install puppeteer and the problems seems to come from this personal install
Stack trace
TypeError: Cannot assign to read only property 'constructor' of object 'Error' at Object.createErrorClass (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:238:38) at ../../node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:252:55) at __require (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:209:50) at ../../node_modules/rxjs/dist/cjs/internal/Subscription.js (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:321:33) at __require (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:209:50) at ../../node_modules/rxjs/dist/cjs/internal/Subscriber.js (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:649:26) at __require (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:209:50) at ../../node_modules/rxjs/dist/cjs/internal/Observable.js (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:887:24) at __require (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:209:50) at ../../node_modules/rxjs/dist/cjs/index.js (/usr/local/lib/node_modules/puppeteer/node_modules/puppeteer-core/lib/cjs/third_party/rxjs/rxjs.js:8919:24)
When I remove env var N8N_RUNNERS_ENABLED=true my workflow works fine.
Can you please share a simple workflow to reproduce this issue? That would hopefully speed up the fix, if we can reproduce this.
Please don’t summon people like this in posts. There is a long queue of unanswered questions here, and we are also busy with plenty of other tasks. Summoning people like this is a bit like asking to skip the queue, which IMO is unfair to everyone else here. If you need priority support, it might make a lot more sense to contact the support team at [email protected]
I have a very similar problem when running puppeteer in a task runner, but in my case require(‘puppeteer’) works and the fail occurs on puppeteer.launch(). The code with complete scraping process works with task runners disabled.
Bellow are some images with details about the code and error.
@Kent1 I’ve added the env and i’m currently on 1.89.2. I’ve successfully installed other packages like remeda but i’m getting the following with cctx. Do you think the next version will cover this?
I tried, but still not working. Lets wait for the next version and see if this problem will be solved. My worry is ‘N8N_RUNNERS_ENABLED=true’ become default before this problem beeing solved.
and can confirm that prior to adding NODE_FUNCTION_ALLOW_BUILTIN I was unable to use crypto after which it works. So my env vars are making it to the env presumably.
Can you tell me if it’s still working for you in version 1.95.3 or higher ? I have issue with puppeteer and try to see if it’s only from my side or not