Slack trigger throwing error when new user is created: Cannot read properties of undefined (reading 'channel')

Describe the problem/error/question

I have a Slack trigger which I am trying to get working when a new user joins our instance. It’s set up as below:

When I create a new user with the test workflow active, I get the error message shown above.

The oauth scopes applied are as follows:

Here is the stack trace:

n8n version

1.81.4 (Cloud)

Stack trace

TypeError: Cannot read properties of undefined (reading 'channel') 
at WebhookContext.webhook (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Slack/SlackTrigger.node.js:299:76) 
at WebhookService.runWebhook (/usr/local/lib/node_modules/n8n/dist/webhooks/webhook.service.js:181:39)
at Object.executeWebhook (/usr/local/lib/node_modules/n8n/dist/webhooks/webhook-helpers.js:181:92)
at processTicksAndRejections (node:internal/process/task_queues:95:5) 
at /usr/local/lib/node_modules/n8n/dist/webhooks/test-webhooks.js:112:37

What is the error message (if any)?

Cannot read properties of undefined (reading ‘channel’)

Please share your workflow

Literally no workflow as I can’t even get the trigger to work!

Share the output returned by the last node

As above.

Information on your n8n setup

  • n8n version: 1.81.4 Cloud
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @RCheesley

Can you please expand the Error Details tab?

I already pasted the stack trace above.

Hey @RCheesley,

Thanks for the report, I popped in the PR below which will fix this. Once reviewed it will be merged and available in a future release.

1 Like

That’s awesome, thanks so much for the quick response!

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

New version [email protected] got released which includes the GitHub PR 14129.

1 Like