Slack Modal 200OK

Hey there,
I am following up for the topic https://community.n8n.io/t/unable-to-pass-slacks-url-verification-for-the-events-api/19775.

I am having the same issue, but I couldn’t find any viable solution.

Describe the problem/error/question

I am opening a new modal in Slack to open a form. When the data is submitted by the user in the form, I want to close the modal. According to the Modals | Slack it should be done by sending 200 OK to the request with the answer. Everything works, just the modal never closes and I am getting and error about problem with connection. The data are received by the webhook, so the only problem might be the 200 OK. Doing a trial and error with curl I have noticed that the webhook from n8n returns HTTP/2 200 and without OK. Going though the forum and documentation here it seems that Slack requires it to be with OK. I also tried sending the data from Slack to the webhook.site and the modal closes without any problems. Is there any solution to force the n8n to return 200 OK?

What is the error message (if any)?


Please share your workflow

Information on your n8n setup

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

Edit

This tip on Stack Overflow actually did the job for me:

This doesn’t seem to be documented anywhere but once I used a 204 response code without additional data the modal is now closing without errors.

Here’s my full workflow:

Hope this helps!

2 Likes

You are the king! No logic there whatsoever, but it works ;D

2 Likes

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