mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Error for Gotify down notifications #731
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#731
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Syntoxr on GitHub (Jan 8, 2022).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
Description
I'm using Gotify as my Notification service but only getting notifications, if a service goes online again. If it goes offline, I'm not getting notified and the log throws out an error.
👟 Reproduction steps
Manually turning off a monitored docker container or other service
👀 Expected behavior
Getting notified if as service goes down
😓 Actual Behavior
Getting no notification but an error message in log
🐻 Uptime-Kuma Version
1.11.3
💻 Operating System and Arch
ubuntu5~20.04.2
🌐 Browser
Brave: Version 1.34.80 Chromium: 97.0.4692.71 (Official Build) (64-Bit)
🐋 Docker Version
20.10.7, build 20.10.7-0
🟩 NodeJS Version
No response
📝 Relevant log output
@Syntoxr commented on GitHub (Feb 8, 2022):
Just had the Idea of using the gotify component of apprise, but even there the down notifications don't work. Maybe some illegal characters in the down message? If so, #975 could be a potential alternative.
@Sev455 commented on GitHub (Feb 19, 2022):
I have this happening too.
Cannot send notification to Uptime Alert
Error: Error: Error: Request failed with status code 500 {"error":"Internal Server Error","errorCode":500,"errorDescription":"Error 1366: Incorrect string value: '\xF0\x9F\x94\xB4 D...' for column
gotify.messages.messageat row 1"}at Gotify.throwGeneralAxiosError (/app/server/notification-providers/notification-provider.js:32:15)
at Gotify.send (/app/server/notification-providers/gotify.js:23:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Function.sendNotification (/app/server/model/monitor.js:684:21)
at async beat (/app/server/model/monitor.js:391:17)
at async safeBeat (/app/server/model/monitor.js:443:17)
Monitor #6 'Insurgency': Failing: Server not found on Steam | Interval: 60 seconds | Type: steam
@kimpenhaus commented on GitHub (Mar 3, 2022):
@Syntoxr / @Sev455 I assume you are running gotify against mysql/maria db? Most probably your collations are not setup properly.
I had the same problems and fixed it by changing
table collations to

utf8mb4_unicode_ci(I've changed them on the entire database)added

charset=utf8mb4to the connection string inside gotifyI don't see an issue with uptime kuma here...
@Syntoxr commented on GitHub (Mar 3, 2022):
@kimpenhaus Wow, many thanks!
My collations were right, but my connection string just had utf8.
Your detailed description is also very appreciated! 👍
@kimpenhaus commented on GitHub (Mar 4, 2022):
@Syntoxr glad I could help 👍
@tan-yong-sheng commented on GitHub (May 6, 2024):
I used sqlite3 and i faced similar error. Any way to mitigate it, thanks in advance.
@CommanderStorm commented on GitHub (May 7, 2024):
What do you mean by "similar"?
Also when you mean you use sqlite, do you mean you use sqlite for gotify or uptime-kuma?