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
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
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
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 :
dokploy/packages/server/src/utils/notifications/build-success.ts
Line 222 in 6fb4a13
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