dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.21k stars 163 forks source link

When updating plugin to 13.0.0 getting:- Error Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch is not defined. #1463

Closed Andybishop closed 1 month ago

Andybishop commented 1 month ago

Is there an existing issue for this?

Describe The Bug

When I update the plugin to 13.0.0 Ring devices are not working in Hoobs/Homebrige and checking the logs I see the following:-

Error Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch is not defined. Trying again in 5 seconds...

If I revert back to 12.1.1 everything starts to work again with no issues.

To Reproduce

Upgrade to 13.0.0 on Hoobs

Expected behavior

Following an update it would be expected to continue working as it did previously.

Relevant log output

08/08/2024, 11:39:12HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:17HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:22HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:27HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:32HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:37HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:42HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:47HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:52HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:39:57HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:02HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:07HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:12HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:17HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:22HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:27HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:32HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:37HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...08/08/2024, 11:40:42HOOBSRingErrorFailed to reach Ring server at https://oauth.ring.com/oauth/token.  fetch is not defined.  Trying again in 5 seconds...

Screenshots

No response

Homebridge Ring Config

{
    "hideDeviceIds": [
        "f48bbc40-4508-489a-985a-267152d75b18",
        "22b50eae-f298-4c43-85d5-ad346bd6d7ed",
        "7229fc68-cf8c-453e-9262-6b35c9a193be"
    ],
    "sendDoorbellMotionNotificationsToTv": false,
    "platform": "Ring",
    "alarmOnEntryDelay": false,
    "refreshToken": "redacted",
    "hideUnsupportedServices": true
}

Additional context

No response

OS

Linux

Node.js Version

16.20.2

NPM Version

7.17.0

Homebridge/HOOBs Version

1.7.0/4.3.1

Homebridge Ring Plugin Version

v13.0.0

Operating System

Ubuntu

tsightler commented 1 month ago

Please use search, this is a duplicate issue https://github.com/dgreif/ring/issues/1459. The requirement for NodeJS v18 or newer (ideally v20) is already documented in the v13 release notes.

tsightler commented 1 month ago

Just for a quick update here, we did reach out to HOOBS via a backchannel and there's a least a bit of life there as we did receive a response. They do have HOOBS 5 that they claim will release "soon", although no real indication when that would be. This has newer NodeJS and Homebridge so hopefully they can get that out. Apparently it's possible to install this today by switching to the "bleeding" branch. You can contact HOOBS support for instructions.