Module not found on n8n Active workflow

anhnt256HOBBY

3 months ago

Hi Team,

I have a problem running n8n on Railway. I ran n8n with this repo https://github.com/anhnt256/n8n-on-railway at the repo I will install the googleapi package. The function can work on the test, but when I trigger the workflow, I will get the error VMError: Module 'googleapis' not found at Resolver.resolveFull (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/resolver.js:126:9). Railway is using sandbox and preventing the installation. How to fix the problem

Closed

4 Replies

unicodeveloperPRO

3 months ago

Please can you give more context on what you mean by the function can work on the test?


Status changed to Awaiting User Response railway[bot] 3 months ago


anhnt256HOBBY

2 months ago

I have created a workflow to generate tokens from code using googleapi. I ran the workflow in the test environment, and activated them successfully. However, when I use the public chat link, I get the error "VMError: Cannot find module 'googleapis' at Resolver.resolveFull".


Status changed to Awaiting Railway Response railway[bot] 2 months ago


anhnt256HOBBY

2 months ago

VMError: Cannot find module 'googleapis' at Resolver.resolveFull (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/resolver.js:126:9) at Resolver.resolve (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/resolver.js:121:15) at resolve (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/nodevm.js:317:21) at VM2 Wrapper.apply (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/bridge.js:490:11) at requireImpl (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/setup-node-sandbox.js:90:19) at require (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/setup-node-sandbox.js:171:10) at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code:1:117 at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code:30:2 at VM2 Wrapper.apply (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/bridge.js:490:11) at NodeVM.run (/usr/local/lib/node_modules/n8n/node_modules/@n8n/vm2/lib/nodevm.js:497:23)

The workflow at 14:20:09 succeeds when I call chat at the workflow. But the workflow at 14:20:39 fails when I call chat at Live Chat.

Attachments


2 months ago

Hello,

I'm sorry but we cannot provide support for 3rd party software here, if you would like support with N8N you will have to get in contact with the N8N community.

In these forums we can only provide support for the Railway platform or product.

Best,

Brody


Status changed to Awaiting User Response railway[bot] 2 months ago


Status changed to Closed brody 2 months ago


Module not found on n8n Active workflow - Railway Help Station