You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enter my ring credentials and get a token. However when the plugin attempts to start i get this error:
[11/21/2024, 2:50:22 PM] [homebridge-ring] Retry #xx failed to reach Ring server at https://api.ring.com/devices/v1/locations. Error: fetch failed, Cause: invalid connection header, Code: UND_ERR_INVALID_ARG. Trying again in 5 seconds...
This goes on and on every 5 seconds unless i stop the plugin.
To Reproduce
No response
Expected behavior
The plugin is not showing any devices and doesn't seem to even connect to the service.
Relevant log output
No response
Screenshots
No response
Homebridge Ring Config
{
"refreshToken": "Omitted for security",
"_bridge": {
"username": "Omitted for security",
"port": 42724
},
"platform": "Ring"
}
Additional context
No response
OS
Windows
Node.js Version
v18.13.0
NPM Version
8.19.3
Homebridge/HOOBs Version
v1.8.5
Homebridge Ring Plugin Version
13.2.0
Operating System
Windows Hyper-v
The text was updated successfully, but these errors were encountered:
Unfortunately, I think this is my fault. I submitted a PR that added "Connection: close" header to try to hint Ring API servers to close connection to work around the fetch hanging issues in prior versions, and this was included in 13.2.0 release. What I did not know was that, at least on some older versions of undici, it explicitly blocks this header and returns an error.
I've already submitted PR #1532 which removes the header and uses a different approach for connection handling which appears to address the previous hang issue as well.
That being said, your NodeJS version is quite old (nearly 2 years) and had a very early version of fetch/undici with many, many known issues. I can't reproduce this issue with current versions of Node 20/22, so perhaps try upgrading to a more current version. The latest NodeJS LTS version is always recommended as that is the versions that is most tested. Currently LTS is 22.11.0.
Also, we have released 13.2.1-beta which should resolve this issue. Please feel free to test and report back. Based on the fact that upgrading Node should fix this, and that a fix is already queued for the next release, I'm going to close this now, however, if for some reason neither of these two fixes address the issue, please feel free to post here and we can re-open.
Is there an existing issue for this?
Describe The Bug
I enter my ring credentials and get a token. However when the plugin attempts to start i get this error:
[11/21/2024, 2:50:22 PM] [homebridge-ring] Retry #xx failed to reach Ring server at https://api.ring.com/devices/v1/locations. Error: fetch failed, Cause: invalid connection header, Code: UND_ERR_INVALID_ARG. Trying again in 5 seconds...
This goes on and on every 5 seconds unless i stop the plugin.
To Reproduce
No response
Expected behavior
The plugin is not showing any devices and doesn't seem to even connect to the service.
Relevant log output
No response
Screenshots
No response
Homebridge Ring Config
Additional context
No response
OS
Windows
Node.js Version
v18.13.0
NPM Version
8.19.3
Homebridge/HOOBs Version
v1.8.5
Homebridge Ring Plugin Version
13.2.0
Operating System
Windows Hyper-v
The text was updated successfully, but these errors were encountered: