hjdhjd / homebridge-unifi-protect

:video_camera: Complete HomeKit integration for all UniFi Protect device types with full support for most features including HomeKit Secure Video, and more. https://homebridge.io
Other
1.48k stars 93 forks source link

NodeJS Error in 3.7.0 #89

Closed ccutrer closed 4 years ago

ccutrer commented 4 years ago
(node:1617) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'debugAll' of undefined
    at ProtectDoorbell.debug (/homebridge/node_modules/homebridge-unifi-protect/src/protect-platform.ts:135:20)
    at new RtpSplitter (/homebridge/node_modules/homebridge-unifi-protect/src/protect-rtp.ts:70:10)
    at ProtectStreamingDelegate.prepareStream (/homebridge/node_modules/homebridge-unifi-protect/src/protect-stream.ts:174:7)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
hjdhjd commented 4 years ago

Thanks. More context...did you do anything to generate the error?

hjdhjd commented 4 years ago

Try v3.7.1. Thanks.

ccutrer commented 4 years ago

Yup it's fixed.

ccutrer commented 4 years ago

Gah nope, it happened again on 3.7.1 when opening the video stream in the Home app:

(node:4164) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'debugAll' of undefined
    at ProtectDoorbell.debug (/homebridge/node_modules/homebridge-unifi-protect/src/protect-platform.ts:135:20)
    at new RtpSplitter (/homebridge/node_modules/homebridge-unifi-protect/src/protect-rtp.ts:70:10)
    at ProtectStreamingDelegate.prepareStream (/homebridge/node_modules/homebridge-unifi-protect/src/protect-stream.ts:174:7)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
hjdhjd commented 4 years ago

Fixed for real this time. Sorry about that...it's just plain embarrassing.

ccutrer commented 4 years ago

Noope. Still happening with 3.7.2.

hjdhjd commented 4 years ago

Post your config.json and details of your configuration. Something else is going on. I don't have this error.

hjdhjd commented 4 years ago

Standby. I just recreated it...finally.

ccutrer commented 4 years ago
    "bridge": {
        "name": "Homebridge 4512",
        "username": "0E:83:9A:C3:45:12",
        "port": 53443,
        "pin": "<redacted>"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8081,
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "192.168.85.1",
                    "mqttUrl": "mqtts://homebridge-unifi-protect:<redacted>@mqtt.cutrer.network/",
                    "password": "<redacted>",
                    "username": "homebridge"
                }
            ],
            "platform": "UniFi Protect"
        }
  ]
}

A UDM Pro, a Doorbell, and that's it.

hjdhjd commented 4 years ago

I got it.

hjdhjd commented 4 years ago

Try v3.7.3. Fixed for real. Again - embarrassing.

github-actions[bot] commented 1 year ago

This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.