Cannot find module 'crypto' when using webhook

Describe the problem/error/question

I’m testing this template using self hosted n8n with Railway.

It runs ok when I manually trigger the workflow, but if I add a webhook to trigger it I get the following error.

Have already set NODE_FUNCTION_ALLOW_BUILTIN = *

What is the error message (if any)?

Cannot find module ‘crypto’ [line 17]
VMError

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.86.1
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): unsure
  • **Running n8n via Docker on Railway
  • Operating system: Ubuntu

Hi @legoatboy Welcome to n8n :n8n: community :tada:

Did you try using the built-in Crypto node ?

Thank you @mohamed3nan - I found a workaround that did not require crypto.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.