This repo demonstrates a problem with slack/web-api 7.8.0 when running in an azure function.
UPDATE: This issue has been solved by adding the User-Agent
header when instantiating the slack WebClient
as described in this comment
- Login to azure
az login
- Copy the
.env-sample
file to.env
and edit as needed - Run the
scripts/create-azure-resources.sh
script
Get the $AZURE_STORAGE_ACCOUNT connection string and set it as the value of AzureWebJobsStorage
in the local.settings.json
file.
Start the vscode debugger Attach to Node Functions
.
Hit the local URL with your web browser. Observe the slack message is sent to the channel.
func azure functionapp publish $AZURE_FUNCTION_APP
Hit the local URL with your web browser. Observe the slack message is not sent to the channel.