We are seeing a repeating error from the Salesforce Slack app whenever a user posts a message in Slack. The message in the channel is delivered normally, but the author also gets an ephemeral error in the Salesforce app DM.
Error (Only visible to you):
There was a problem processing the Slack event MESSAGE_EVENT ErrorType: NullPointerException
This happens on every message typed directly in Slack.
Please advise how to stop the Salesforce app from sending these errors (configuration, scopes/event subscription, or a known platform issue). If the user sends a message from Salesforce, this error does not occur and everything works correctly;
We don’t have a custom Apex Slack app: no .slackapp / SlackApp metadata, no class extending Slack.EventDispatcher, and Apex Slack App User Setup is empty (no System User / Unmapped User row). The only Slack Apex in the org is SDO demo code (Slack Mission Control: org link / bundles), which is not subscribed to message events.
The ephemeral error comes from the first-party Salesforce app in Slack (Messages tab, “Sending messages to this app has been turned off”), on every message typed in Slack. Salesforce -> Slack does not trigger it.
So there is no handler where we can null-check getUser() / getText(), and we can’t remove message from Event Subscriptions — that app isn’t ours on api.slack.com.
If the same NPE string is also used when Salesforce’s own inbound handler throws, that would explain it. Any idea how to stop or debug that without a custom SlackApp?