Skip to content

500 error from server side via sending message with mention in thread  #271

@actorFromCalifornia

Description

@actorFromCalifornia

Hello!

I try to use this combo of methods:

  1. send file to channel with
SlackMessageHandle<SlackMessageReply> sendFile(SlackChannel channel, byte [] data, String fileName, String title, String initialComment);
  1. open thread for this message with file and mention user group with methods:
SlackPreparedMessage slackPreparedMessage = new Builder().withMessage(message).withLinkNames(true).withThreadTimestamp(messageHandle.getReply().getTimestamp()).build();
session.sendMessage(session.findChannelByName(channelName), slackPreparedMessage);
  1. I get 500 error
{
  "timestamp": "2019-09-06T14:48:24.400+0000",
  "status": 500,
  "error": "Internal Server Error",
  "message": "class com.ullink.slack.simpleslackapi.replies.SlackReplyImpl cannot be cast to class com.ullink.slack.simpleslackapi.replies.SlackMessageReply (com.ullink.slack.simpleslackapi.replies.SlackReplyImpl and com.ullink.slack.simpleslackapi.replies.SlackMessageReply are in unnamed module of loader 'app')",
  "path": "/start/notify"
}

Please, fix this! I need to implement this case in my product! Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions