-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slash Command returns "bad_error_message" #1267
Comments
It worked for me if i change the value of struct SlashCommand to
Which should not be the case. but not sure. |
Happened to me too |
Same problem, rollback to v.0.12.3 is helped slack-go/slack: v.0.12.4 Event Data:
Code sample: func (s *Service) eventRouter(ctx context.Context, e socketmode.Event) error {
} |
Sorry about that; probably a straight-forward fix, somebody care to work up a PR? I added a comment to the PR where this was introduced. |
Looks like there's one in that already addresses the comments on the original commit #1266 |
Just published v0.12.5 which deals w/ bool or string. Thanks to @kpaulisse. |
I've tested in v0.12.5, looks like all is working. Thanks everyone! |
What happened
I'm following this tutorial for creating a Slack bot in socket mode. I've created a very basic "hello" command and reinstalled the app. However, when I run the code and attempt the command "/hello reader" per the tutorial, I get "/hello failed with the error "dispatch_failed"" instead of processing the command. I tried adding a default case to the switch statement and it returns
****** Received Event: {error_bad_message 0x1400029e5d0 <nil>}
, which appears to come from the slack-go library.Sample websocket message
Expected behavior
It looks like the code should process the command correctly.
Steps to reproduce
Follow the tutorial to create the slash command (code below).
reproducible code
manifest.yaml
Versions
The text was updated successfully, but these errors were encountered: