When i run the below code on my local N8N (npm installed) in function node , the code work fine and i get the status code the site, where as the same code i am executing on a N8N ( containerised) which also has puppeteer and other plugins installed, i get the error " ERROR: Cannot read property ‘split’ of undefined "
I am unable to find the reason as to why the containerised N8N is throwing this error message where as the local one works just fine. Please refer the code and error screen shot.
Note: I know i can use a HTTP Node to get the status code, but the agenda is not to get the status code using puppeteer, its more than that. I want to try using puppeteer in a function node rather than using it on a execute node.
You might want to check if you can build a custom image running n8n on top of this. Alternatively, you might want to check out this custom node from @drudge which should make things quite a bit simpler:
hello @drudge , thank you for creating puppteer to n8n through community nodes, however, may i know how to include chrome to n8n docker setup ?
I am having problem as chrome is missing from my n8n docker setup. ( as shown below )
Im running into this same issue with another external module actually and I think it requires a custom Dockerfile, but even after creating a replacing n8n Docker image using a new Dockerfile I still get this same issue.