Skip to content

Slack notification failed as the API is out of date #4053

@vincent-tarrit

Description

@vincent-tarrit

To Reproduce

Create a slack notification with "Deployment build success", deploy something and the api fail with the error :

Error: Failed to send slack notification Failed to send slack notification Unprocessable Entity
at async NE.TE.autorun [as processFn] (dist/server.mjs:1:1111)

Current vs. Expected behavior

The notification isn't send, i would like to receive the notification.

Provide environment information

Ubuntu 24.04

Which area(s) are affected? (Select all that apply)

Docker Compose

Are you deploying the applications where Dokploy is installed or on a remote server?

Remote server

Additional context

the file :

use an out of date API. the actions key is blocking. Can you update the content with :

if (slack) {
const { channel } = slack;

await sendSlackNotification(slack, {
channel: channel,
attachments: [
{
color: "#00FF00",
pretext: ":white_check_mark: Build Success",
fields: [
{
title: "Project",
value: projectName || "N/A",
short: true,
},
{
title: "Application",
value: applicationName || "N/A",
short: true,
},
{
title: "Environment",
value: environmentName || "N/A",
short: true,
},
{
title: "Type",
value: applicationType || "N/A",
short: true,
},
{
title: "Time",
value: date?.toLocaleString?.() || "N/A",
short: true,
},
{
title: "Details",
value: <${buildLink}|View Build Details>,
short: false,
},
],
},
],
});
}

Will you send a PR to fix it?

YES : https://github.com/Dokploy/dokploy/pull/4054/changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions