mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Telegram notification fail to send alert with error "Cannot read properties of undefined (reading 'data')" #1007
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#1007
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 @a2940uw on GitHub (Apr 20, 2022).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
Hi, I have to setup Telegram notification and fill the required Bot token and Chat ID correctly, but the Test was fail and prompted "Cannot read properties of undefined (reading 'data'), my network require to use proxy for internet access, the uptime-kuma hosts already have proxy setting and internet access is ok, I don't know this error is related to internet access or other issue.
🐻 Uptime-Kuma Version
1.14.0
💻 Operating System and Arch
Raspberry Pi OS 11 (bullseye)
🌐 Browser
Chrome
🐋 Docker Version
Docker version 20.10.14, build a224086
🟩 NodeJS Version
No response
@louislam commented on GitHub (Apr 21, 2022):
Proxy is not support for notifications.
@a2940uw commented on GitHub (Apr 21, 2022):
Hi Louis, Thank you for your reply, it is possible to apply the proxy setting in the notification ?
@thmarti commented on GitHub (May 3, 2022):
See #616
@github-actions[bot] commented on GitHub (Sep 21, 2022):
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[bot] commented on GitHub (Sep 24, 2022):
This issue was closed because it has been stalled for 2 days with no activity.
@screencomuser commented on GitHub (Mar 23, 2023):
I am seeing this error in 1.21.0 - both notifications and test.
Tried to recreate using a standalone script and the only way to get this exception is to have some error in the try/catch that doesn't set a response property
When I remove the line
const axios = require("axios");I get the following error, which leads me to believe a non-axios error is being thrownA fix could be to check if the exception has a response property
@louislam commented on GitHub (Mar 23, 2023):
Good point, i think you are right.
error.responsecould be undefined in case of non-http errors. Feel free to create a pull request to fix this issue if you want to be a contributor.@screencomuser commented on GitHub (Mar 23, 2023):
I traced down the error to a DNS configuration error in my pod (on k3s)
It appears that the default resolv.conf had an ndots:5 setting, which of course is too much for api.telegram.org
Changing it to ndots:1 fixed the error.
I will create a pull request which handles the error a little more graceful in the event of an Axios error that doesn't have a response.property