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

Discord notification #1381

Closed
2 tasks done
keitje opened this issue Mar 17, 2022 · 9 comments
Closed
2 tasks done

Discord notification #1381

keitje opened this issue Mar 17, 2022 · 9 comments

Comments

@keitje
Copy link

keitje commented Mar 17, 2022

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I've configured notifications of my monitoring to a discord webhook. But I wont receive the service down or up text in Discord. Only the text that you can configure in 'Prefix Custom Message'
service_down
empty_servicename_discord

🐻 Uptime-Kuma Version

1.12.1

💻 Operating System and Arch

Ubuntu server 20.04.4

🌐 Browser

Chrome 99.0.4844.74

🐋 Docker Version

Docker version 20.10.7, build 20.10.7-0ubuntu5~20.04.2

🟩 NodeJS Version

No response

@keitje keitje added the help label Mar 17, 2022
@louislam
Copy link
Owner

It is working in my side.

You could try to create a new monitor and take it down by using invalid hostname.

image

@luwol03
Copy link

luwol03 commented Mar 24, 2022

Can you check if your embed contains hostnames that are not resolveable by discord? I already experienced that on another software trying to connect to discord webhooks. (See this issue for context)

@keitje
Copy link
Author

keitje commented Mar 24, 2022

Can you check if your embed contains hostnames that are not resolveable by discord? I already experienced that on another software trying to connect to discord webhooks. (See this issue for context)

Well, they are all local DNS names to check. The Discord notification is working, on the app I see in my phone notifications the text. But it won't show up on de channel.
But I migrated my notifications to gotify. So it is not working but no longer a issue anymore.

@luwol03
Copy link

luwol03 commented Mar 24, 2022

You didn't get it. Discord embeds are not valid and won't be send if they contain Hostnamen in (icon) urls that are not resolvable by discords servers. The content of the message is still send as I know. So try to adjust your setup temporarily to IP addresses for educational purposes.

@keitje
Copy link
Author

keitje commented Mar 25, 2022

You didn't get it. Discord embeds are not valid and won't be send if they contain Hostnamen in (icon) urls that are not resolvable by discords servers. The content of the message is still send as I know. So try to adjust your setup temporarily to IP addresses for educational purposes.

I've changed my DNS name to an local ipadres of one of my systems. Again the text does not show in the Discord channel. The integration works, its there... but you don't get to see the text in Discord.

@luwol03
Copy link

luwol03 commented Mar 25, 2022

If you want to investigate and solve that issue, can you somehow check the response and request body by modifying the code if possible?

@github-actions
Copy link

We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 23, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 2 days with no activity.

@cmulk
Copy link

cmulk commented Feb 9, 2024

Just wanted to make a note here in case someone with the same problem finds this thread like I did.
In Discord app settings you have to enable Text & Media > Show embeds and preview website links pasted into chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants