-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
Sorry for the stupid question, I'm new to Slack development.
I receive a missing_charset
warning in response all the times on SlackClient.postMessage(), and I checked the samples and look everywhere in the code but I don't understand how to set the charset.
My SlackClient instance:
@Bean
public SlackClient getSlackClient() {
SlackClientRuntimeConfig runtimeConfig = SlackClientRuntimeConfig.builder()
.setTokenSupplier(() -> slackAppToken)
.build();
return SlackClientFactory.defaultFactory().build(runtimeConfig);
}
My postmessage code:
public static void simplePostMessage(SlackClient slackClient, String channel, String text) {
try {
slackClient.postMessage(
ChatPostMessageParams.builder()
.setText(text)
.setChannelId(channel)
.build())
.join().unwrapOrElseThrow();
} catch (Exception e) {
log.error("slackClient.postMessage", e);
}
}
Thank you.
Metadata
Metadata
Assignees
Labels
No labels