You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default implementation of respond by ExpressReceiver doesn't accept a string argument. It has been working only with RespondArguments since version 1.0.0.
Description
The default implementation of
respond
by ExpressReceiver doesn't accept a string argument. It has been working only withRespondArguments
since version 1.0.0.RespondFn
: https://github.com/slackapi/bolt/blob/%40slack/bolt%401.5.0/src/types/utilities.ts#L21-L23ExpressReceiver
srespond
implementation: https://github.com/slackapi/bolt/blob/%40slack/bolt%401.5.0/src/ExpressReceiver.ts#L103-L108Thank you @marks for reporting this issue. Refer to the thread in Slack Community Workspace.
--- (His original report there) ---
https://slack.dev/bolt docs say I can use:
but when I try to do something like this, I get a 500 / invalid_payload back from the Slack API.
It appears you need to do:
Is this a bug/regression? It seems the Slack webhook/response URLs do not take plain text
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Reproducible in:
package version: any
node version: any
OS version(s): any
Steps to reproduce:
respond("Hi there!");
in a Bolt appExpected result:
The API call successfully completes.
Actual result:
The Bolt app gets a 500 / invalid_payload back from the Slack API.
Attachments:
The text was updated successfully, but these errors were encountered: