Connection with slack to receive messages - Challenge -Error

Hi, I am trying to connect Slack to n8n, with a webhook.
When entering the webhook production url I get an error in the slack configuration, where I get this error: “Your request URL responded with an HTTP error. Update your URL to receive a new request and challenge value.”

I have the webhook to verify it correctly. I try with postman and it works fine.

I’m doing it in the cloud, because locally I thought it could be my mistake, but it still doesn’t work.

I saw this problem in similar threads, but i didn´t find a clear answer.

Thanks in advaice.



It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @AlexOptimizalo,

We have a Slack trigger node now that would take care of this for you but looking at your request can you try removing the " from the $json.body.challenge and see if that changes anything.

Have you also checked the workflow execution log to see if it is working correctly?

I add search:read in user token scopes and now it works fine. The only problem that I have not solved is that I am not able to let me send direct messages to the application, I have these activated on write:
chat:write
chat:write.customize
im:write
mpim:write
usergroups:write
users:write

But well, I imagine this is already a Slack problem not n8n’s.