socketmode_handler.go:47: Unexpected event type received: events_api #1454
Replies: 2 comments
-
|
Hey! This is showing because you don't have a handler for I recommend you look at ./examples/socketmode_handler/socketmode_handler.go. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@nlopes So just to make sure I understand fully, this is required if I use the socket_mode socketmodeHandler.Handle(socketmode.EventTypeEventsAPI, middlewareEventsAPI)
func middlewareEventsAPI(evt *socketmode.Event, client *socketmode.Client) {
// NOOP
// We already handle explicit events via `socketmodeHandler.HandleEvents(slackevents.AppMention, middlewareAppMentionEvent)`
}I thought maybe I was doing something wrong as it seems unnecessary to have NOOPs in my code just to suppress a message. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Seeing a lot of this in logs, any reason for it? How can I suppress if its nothing?
Beta Was this translation helpful? Give feedback.
All reactions