Skip to content

Cannot send alert to slack channel: files.upload is deprecated #458

@graham2071

Description

@graham2071

Based on official documentation, files.upload used to send reports to slack will be deprecated soon.

And it seems like it is already the case.

$ curl -s -F "token=***" -F "file=test_alert.txt" -F "filename=test LMD slack" -F "channels=#********" -X POST https://slack.com/api/files.upload
{"ok":false,"error":"method_deprecated"}

Source:

slack_response=$($curl -s -F "token=$slack_token" -F "file=@$file" -F "filename=$slack_subj" -F "channels=$slack_channels" -X POST https://slack.com/api/files.upload | grep -oP '^{"ok":true')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions