Skip to content
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

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

Open
Nikitos9I opened this issue Sep 6, 2019 · 1 comment
Open

Comments

@Nikitos9I
Copy link

Nikitos9I commented Sep 6, 2019

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!

@Nikitos9I Nikitos9I changed the title class com.ullink.slack.simpleslackapi.replies.SlackReplyImpl cannot be cast to class com.ullink.slack.simpleslackapi.replies.SlackMessageReply 500 error from server side via sending message in tred Sep 6, 2019
@Nikitos9I Nikitos9I changed the title 500 error from server side via sending message in tred 500 error from server side via sending message in thread Sep 6, 2019
@Nikitos9I Nikitos9I changed the title 500 error from server side via sending message in thread 500 error from server side via sending message with mention in thread Sep 6, 2019
@Nikitos9I
Copy link
Author

@bcorne could you please look at this issue

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

No branches or pull requests

1 participant