TypeError: The “key” argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received undefined
Stack
TypeError: The "key" argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined
at new NodeError (node:internal/errors:405:5)
at prepareSecretKey (node:internal/crypto/keys:596:11)
at new Hmac (node:internal/crypto/hash:134:9)
at createHmac (node:crypto:165:10)
at Object.webhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/WooCommerce/WooCommerceTrigger.node.js:153:59)
at Workflow.runWebhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:639:101)
at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/WebhookHelpers.js:213:48)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /usr/local/lib/node_modules/n8n/dist/TestWebhooks.js:96:37
This can be hard to diagnose without having sample JSON data and your example workflow that you’re running into trouble with, but I also noticed you’re running a very old version of n8n. Could you please try updating as first port of call for this? There have been many, many fixes since version 0.126.1
Good day community. I have exactly this same problem, and from what I have reviewed, some users also report the same error when connecting with clickup.
Information of my n8n:
n8n version: 1.25.1
Database: SQLite
Running n8n via Docker compose
Operating system: ubuntu jammy 22.04
I’m receiving this error when attempting to setup a new ClickUp workflow, I already have several existing that work fine w/ same credential. As soon as the webhook is received, I get this:
ERROR: The “key” argument must be of type string or an instance of ArrayBuffer, Buffer, TypedArray, DataView, KeyObject, or CryptoKey. Received undefined
n8n version: 1.24.1
Database (default: SQLite): SQLite
n8n EXECUTIONS_PROCESS setting (default: own, main): own
Running n8n via (Docker, npm, n8n cloud, desktop app): docker
Operating system: Debian (might be Ubuntu if that matters
I have the same problem. The workflow has been working for over a year, and then everything broke on the woo trigger.
How to solve the problem quickly?
Information of my n8n:
n8n version: 1.25.1
Database: SQLite
Running n8n via Docker compose
Operating system: ubuntu 20.04
This happens in both modes. I recreated the WOO API key and now everything is working again.
Below I have attached the entire log for today, there are at least 7 sending errors in the workflow.
The log isn’t really going to do much, The issue is around the key not being available in n8n to verify the request. I have created an internal ticket to get this resolved as there appears to be a few nodes linked by the same issue.
I just wanted to add because the same issue is now happening for me with the woocommerce trigger. Get, Create, Update products, orders etc work. Only the woocommerce trigger node throws the TypeError.
Thanks for letting us know that is what the posts above are about as well, This will be fixed hopefully in a 1.27.2 release shortly as we have identified the cause.