Slack dialog doesn't close after form submission

后端 未结 2 566
自闭症患者
自闭症患者 2020-12-04 02:07

I created a slack dialog/form to collect some information from users; The form renders just fine and I can fill out the form without a problem but it doesn\'t close after I

相关标签:
2条回答
  • 2020-12-04 02:48

    Sending a 200 OK is not enough.

    It also has to be empty OR contain a list of input validation errors in the correct format as JSON. If your response contains any other text (e.g. a warning message) it will create this error.

    As it says in the documentation:

    When the submission is without exception, your app must respond with 200 OK with an empty body. This will complete the dialog.

    0 讨论(0)
  • 2020-12-04 02:59

    I had a similar problem (using golang and not JS). Responding with a 200 did not help, with or without body, but responding with a 204 code and no body fixed the problem.

    0 讨论(0)
提交回复
热议问题