Error for Gotify down notifications #731

Closed
opened 2026-02-28 01:56:02 -05:00 by deekerman · 7 comments
Owner

Originally created by @Syntoxr on GitHub (Jan 8, 2022).

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

  • I checked and didn't find similar issue

🛡️ 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

Cannot send notification to Gotify
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`.`message` at 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 Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:443:17)
Originally created by @Syntoxr on GitHub (Jan 8, 2022). ### ⚠️ Please verify that this bug has NOT been raised before. - [X] I checked and didn't find similar issue ### 🛡️ Security Policy - [X] I agree to have read this project [Security Policy](https://github.com/louislam/uptime-kuma/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 ```shell Cannot send notification to Gotify 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`.`message` at 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 Timeout.safeBeat [as _onTimeout] (/app/server/model/monitor.js:443:17) ```
deekerman 2026-02-28 01:56:02 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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.

@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.
Author
Owner

@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.message at 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

@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`.`message` at 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
Author
Owner

@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

  1. table collations to utf8mb4_unicode_ci (I've changed them on the entire database)
    image

  2. added charset=utf8mb4 to the connection string inside gotify
    image

I don't see an issue with uptime kuma here...

image
@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 1) table collations to `utf8mb4_unicode_ci` (I've changed them on the entire database) <img width="411" alt="image" src="https://user-images.githubusercontent.com/575109/156658197-f56389c1-416e-4a26-83ac-da2070ef7ff1.png"> 2) added `charset=utf8mb4` to the connection string inside gotify <img width="877" alt="image" src="https://user-images.githubusercontent.com/575109/156658518-00d6dddd-f9e8-406b-9269-547d7af1bd14.png"> I don't see an issue with uptime kuma here... <img width="744" alt="image" src="https://user-images.githubusercontent.com/575109/156658957-08e6d240-06ce-47ba-9751-7aa7f2195c36.png">
Author
Owner

@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! 👍

@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! :+1:
Author
Owner

@kimpenhaus commented on GitHub (Mar 4, 2022):

@Syntoxr glad I could help 👍

@kimpenhaus commented on GitHub (Mar 4, 2022): @Syntoxr glad I could help :+1:
Author
Owner

@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.

@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.
Author
Owner

@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?

@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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#731
No description provided.