Describe the problem/error/question
I am trying to use slack with custom command in n8n but getting this error message “Cannot read properties of undefined (reading ‘type’)
Error details
Other info
n8n version
1.114.4 (Self Hosted)
Stack trace
TypeError: Cannot read properties of undefined (reading ‘type’) at WebhookContext.webhook (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_afd197edb2c1f848eae21a96a97fab23/node_modules/n8n-nodes-base/nodes/Slack/SlackTrigger.node.ts:344:36) at WebhookService.runWebhook (/usr/local/lib/node_modules/n8n/src/webhooks/webhook.service.ts:366:8) at Object.executeWebhook (/usr/local/lib/node_modules/n8n/src/webhooks/webhook-helpers.ts:467:24) at /usr/local/lib/node_modules/n8n/src/webhooks/test-webhooks.ts:126:25“ in n8n slack trigger node when i trigger the custom command from slack.
What is the error message (if any)?
Cannot read properties of undefined (reading ‘type’)
Error details
Other info
n8n version
1.114.4 (Self Hosted)
Stack trace
TypeError: Cannot read properties of undefined (reading 'type') at WebhookContext.webhook (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_afd197edb2c1f848eae21a96a97fab23/node_modules/n8n-nodes-base/nodes/Slack/SlackTrigger.node.ts:344:36) at WebhookService.runWebhook (/usr/local/lib/node_modules/n8n/src/webhooks/webhook.service.ts:366:8) at Object.executeWebhook (/usr/local/lib/node_modules/n8n/src/webhooks/webhook-helpers.ts:467:24) at /usr/local/lib/node_modules/n8n/src/webhooks/test-webhooks.ts:126:25
Parameters
Settings
Webhook URLs
Credential to connect with
Set up a webhook in your Slack app to enable this node. More info. We also recommend setting up a signing secret to ensure the authenticity of requests.
Trigger On
Bot / App MentionAny Event
Watch Whole Workspace
Channel to Watch
Download Files
Options
No properties
I wish this node would…
Problem in node ‘Slack Trigger‘
Cannot read properties of undefined (reading ‘type’)
Please share your workflow
{
“nodes”: [
{
“parameters”: {
“trigger”: [
“app_mention”,
“any_event”
],
“channelId”: {
“__rl”: true,
“value”: “C09KGQYNH0V”,
“mode”: “list”,
“cachedResultName”: “n8n-test”
},
“options”: {}
},
“type”: “n8n-nodes-base.slackTrigger”,
“typeVersion”: 1,
“position”: [
416,
-624
],
“id”: “abd67e25-dd05-4f9d-b23a-53600efdbb60”,
“name”: “Slack Trigger”,
“webhookId”: “9608716b-cb2f-43b5-8fe5-21c28503fa1c”,
“credentials”: {
“slackApi”: {
“id”: “qKlgXe4y2y1qSxoa”,
“name”: “Slack account”
}
}
}
],
“connections”: {
“Slack Trigger”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “1f087ae50154fef7690fb85240cca68fa70d41f0b46901859522747c474c78dc”
}
}
Share the output returned by the last node
it is a trigger node so no last node output
Information on your n8n setup
- n8n version: 1.114.4
- Database (default: SQLite): Default
- n8n EXECUTIONS_PROCESS setting (default: own, main): Default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: NAME=“Ubuntu”
VERSION_ID=“24.04”
VERSION=“24.04.3 LTS (Noble Numbat)”