Skip to content

[Bug]: Slack alerts do not work #4887

@linuxgemini

Description

@linuxgemini

User story

As a user, I want Slack alerts to work so that I get LinuxGSM alerts on Slack.

Game

Satisfactory

Linux distro

Ubuntu 22.04

Command

command: start

Further information

I have created a Slack App for incoming webhooks (as per Slack's docs) and configured the following on lgsm/config-lgsm/sfserver/sfserver.cfg:

statusalert="on"
slackalert="on"
slackwebhook="https://hooks.slack.com/services/[WORKSPACE_ID]/[BOT_USER_ID]/[WEBHOOK_TOKEN]"

Every time I start or stop the server, I do not receive a webhook message and the command exits with 1.

Relevant log output

[  OK  ] Stopping sfserver: Graceful: CTRL+c: 3 ... OK
[ FAIL ] Stopping sfserver: Sending Slack alert: invalid_payload

Steps to reproduce

  1. Obtain a webhook URL using Slack's documentation.
  2. Turn on alerting on LinuxGSM.
  3. Trigger an alert.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions