Skip to content

NTLM authentication fails on certain endpoints - Cannot read properties of null (reading 'length')Β #6913

@Wisienkaa

Description

@Wisienkaa

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

Cannot read properties of null (reading 'length')

🐻 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

  • Runtime Environment:
    • Docker: Version X.X.X (Build Y.Y.Y)
    • Docker Compose: Version X.X.X
    • Portainer (BE/CE): Version X.X.X (LTS: Yes/No)
    • MariaDB: Version X.X.X (LTS: Yes/No)
    • Node.js: Version X.X.X (LTS: Yes/No)
    • Kubernetes (K3S/K8S): Version X.X.X (LTS: Yes/No, via [method/tool])
  • Database:
    • SQLite: Embedded
    • MariaDB: Embedded/External
  • Database Storage:
    • Filesystem:
      • Linux: ext4/XFS/Btrfs/ZFS/F2FS
      • macOS: APFS/ HFS+
      • Windows: NTFS/ReFS
    • Storage Medium: HDD/eMMC/SSD/NVMe
  • Uptime Kuma Setup:
    • Number of monitors: 110

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions