mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
NTLM authentication fails on certain endpoints - Cannot read properties of null (reading 'length') #4699
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#4699
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 @Wisienkaa on GitHub (Feb 12, 2026).
⚠️ Please verify that your question has not already been reported
🛡️ Security Policy
📝 Describe your problem
Hi,
I'm trying to monitor endpoints that require NTLM authentication using Uptime Kuma (v2.0.2) on Node.js v20.19.5.
When I configure a monitor with NTLM, the request fails and I get the following error in the logs:
Cannot read properties of null (reading 'length')
It seems that the response body (res.data) is null in some cases, causing the crash when the code tries to read res.data.length. Could someone help fix NTLM support so that empty responses do not cause crashes?
📝 Error Message(s) or Log
🐻 Uptime-Kuma Version
v2.0.2
💻 Operating System and Arch
Operating System: Oracle Linux Server 9.7 (x86_64) Kernel: 5.15.0-315.196.5.1.el9uek Architecture: x86_64
🌐 Browser
N/A
🖥️ Deployment Environment
X.X.X(BuildY.Y.Y)X.X.XX.X.X(LTS: Yes/No)X.X.X(LTS: Yes/No)X.X.X(LTS: Yes/No)X.X.X(LTS: Yes/No, via[method/tool])110@CommanderStorm commented on GitHub (Feb 12, 2026):
@FlorianFeka I think this is the
www-authenticateheader being missing. What does this mean? Is this a defect in us or @Wisienkaa server?@Wisienkaa commented on GitHub (Feb 16, 2026):
I verified the behavior on my side and the www-authenticate header is present in the initial response. The authentication flow appears to follow the standard NTLM handshake
Curl command used:
curl --ntlm -u domain_name\user:pass https://endpoint -k -L -v
So from the server, authentication and redirect seem to work correctly.
However, in Uptime Kuma the monitor fails with:
Cannot read properties of null (reading 'length') or Cannot read properties of null (reading 'headers')
Maybe the issue is when handling the NTLM authentication flow combined with the 302 redirect?
Could you please confirm whether Uptime Kuma fully supports NTLM authentication with redirects 401 > NTLM > 302?
@louislam commented on GitHub (Feb 16, 2026):
FYI, we are using
axios-ntlmThis may be related issue from their repo.
https://github.com/Catbuttes/axios-ntlm/issues/4
Also we are using 1.3.0, which is an old version.
https://www.npmjs.com/package/axios-ntlm/v/1.3.0
We cannot update to the latest version due to the breaking change on their side, but not sure if they fixed redirection issue in newer versions.