question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error for Gotify down notifications

See original GitHub issue

⚠️ 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)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kimpenhauscommented, 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
0reactions
kimpenhauscommented, Mar 4, 2022

@Syntoxr glad I could help 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

is Gotify not working / having issues for you? - 99images
The Gotify app server may be down and that is causing the loading issue. Please try after few minutes ... Gotify app Notifications...
Read more >
having trouble with dnf-automatic notification - Stack Overflow
So I find out Gotify as a notification tool for my phone. I want dnf-automatic to execute a gotify-cli command, which kind of...
Read more >
Gotify : r/selfhosted - Reddit
46 votes, 35 comments. Strange question. What apps do you use that use Gotify for notifications. Either natively or via some script.
Read more >
Push Yourself - » Linux Magazine
A Gotify application is a profile that makes it possible to identify the source of push notifications via a unique token. For example,...
Read more >
Gotify - A simple notifications thingy. - YouTube
Patreon: https://www.patreon.com/hexdslAmazon Wish list: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found