Issue Type
Description
When user_change event is sent, the code breaks with the following exception
java.lang.UnsupportedOperationException: JsonObject
at com.google.gson.JsonElement.getAsString(JsonElement.java:179)
at com.slack.api.bolt.middleware.builtin.IgnoringSelfEvents.apply(IgnoringSelfEvents.java:79)
This happens because code expects user to contain string but it contained jsonObject
{
"token": ".....",
"team_id": ".....",
"enterprise_id": "....",
"api_app_id": "....",
"event": {
"type": "user_change",
"user": {
"id": "....",
"name": "gaurav",
......
}
The issue is reproducible in:
- Module Version: 1.0.0
- JDK Version: 1.8.0_231
The steps to reproduce are:
- subscribe to user_change event
- Change any field to produce webhook
The expected result is:
Event to get handled
The actual result is:
exception is thrown
Issue Type
Description
When user_change event is sent, the code breaks with the following exception
This happens because code expects
userto contain string but it contained jsonObjectThe issue is reproducible in:
The steps to reproduce are:
The expected result is:
Event to get handled
The actual result is:
exception is thrown