Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

An error occurred in the categorize middleware: Error: Can't set headers after they are sent. #1541

Closed
justinemar opened this issue Dec 12, 2018 · 2 comments

Comments

@justinemar
Copy link

I'm receiving the above error if i use bot.replyPrivate on interactive_message_callback

botkit @^0.6.21

controller.on('interactive_message_callback', function(bot, message) {
     // ....Check for the selected option 
    var nonInteractiveResponse = {...}
    bot.replyPrivate(message, nonInteractiveResponse)  // An error occurred in the categorize middleware
}) 

Also is there anyway to use slash command without needing a store?

@justinemar
Copy link
Author

bot.sendEphemeral is what i needed. But i will be happy for some answer regarding the use of store when using slash commands

@benbrown
Copy link
Contributor

There is not currently a way to use slash commands without using a full Slack app that utilizes oauth. This may change in an upcoming version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants