Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Slack Notifications - [no preview available] #5564

Open
1 task done
bslatyer opened this issue Jan 22, 2025 · 0 comments
Open
1 task done

[BUG] Slack Notifications - [no preview available] #5564

bslatyer opened this issue Jan 22, 2025 · 0 comments
Labels
area:notifications Everything related to notifications bug Something isn't working type:enhance-existing feature wants to enhance existing monitor

Comments

@bslatyer
Copy link

πŸ“‘ I have found these related issues/pull requests

N/A

πŸ›‘οΈ Security Policy

Description

Slack Notifications worked as expected in the Uptime Kuma 1.x.x and displayed a notification preview correctly.

Now in Uptime Kuma 2.x.x, Slack Notifications do not work as expected and now display [no preview available]

πŸ‘Ÿ Reproduction steps

Any Uptime Kuma POST Request to a Slack webhook causes this issue

πŸ‘€ Expected behavior

Slack is meant to display a brief Notification Preview

πŸ˜“ Actual Behavior

Slack doesn't display a notification preview

Image

🐻 Uptime-Kuma Version

2.0.0-beta.1

πŸ’» Operating System and Arch

Debian 12.9 - ARM64

🌐 Browser

Safari 18.3 (20620.2.4.11.4)

πŸ–₯️ Deployment Environment

  • Runtime: Docker 27.5.0
  • Database: SQLite
  • Filesystem used to store the database on: EXT4 on an NVMe
  • Number of Monitors: 42

πŸ“ Relevant log output

2025-01-22T19:41:12+11:00 [MONITOR] ERROR: Cannot send notification to Slack
2025-01-22T19:41:12+11:00 [MONITOR] ERROR: Error: Error: AxiosError: Request failed with status code 400 invalid_attachments
    at Slack.throwGeneralAxiosError (/app/server/notification-providers/notification-provider.js:69:15)
    at Slack.send (/app/server/notification-providers/slack.js:172:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Monitor.sendNotification (/app/server/model/monitor.js:1343:21)
    at async beat (/app/server/model/monitor.js:925:21)
    at async Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:1010:17)
@bslatyer bslatyer added the bug Something isn't working label Jan 22, 2025
@CommanderStorm CommanderStorm added area:notifications Everything related to notifications type:enhance-existing feature wants to enhance existing monitor labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications bug Something isn't working type:enhance-existing feature wants to enhance existing monitor
Projects
None yet
Development

No branches or pull requests

2 participants