Open Shaun-C2 opened 3 months ago
it's not a good idea to paste your refresh token in a public forum, that is your access to your account. In this case it probably doesn't matter since the token is likely the actual problem, but just information for the future. It's the equivalent of posting your password.
You should definitely try wiping out the token and then re-authenticating, the refresh token you posted doesn't even appear to be in the correct format for current tokens, but the message is really clear, Ring is saying your token is not authorized. Good luck!
@peppers-newish No, that is not a similar issue, and your error message is completely different. You need to update your NodeJS version to at least v18, ideally v20. This is stated in the release notes for v13. I will mark you comment as off-topic since it is unrelated to this issue.
Also, HOOBS is not supported with the v13 plugin versions since they have not provided an update for the end-of-life NodeJS version. You should reach out to HOOBS support for assistance with HOOBS as we cannot help with that.
@peppers-newish No, that is not a similar issue, and your error message is completely different. You need to update your NodeJS version to at least v18, ideally v20. This is stated in the release notes for v13. I will mark you comment as off-topic since it is unrelated to this issue.
Also, HOOBS is not supported with the v13 plugin versions since they have not provided an update for the end-of-life NodeJS version. You should reach out to HOOBS support for assistance with HOOBS as we cannot help with that.
My apologies. You are right that the error is not exactly the same. I have removed my comments. I will create a separate report. Though both have OAuth issue, the actual error has one word difference. Homebridge on Synology does have NodeJS v20 installed though so I don't know what is up there. Anyway, sorry. I will report a separate thread.
@peppers-newish As I stated above, HOOBS is not supported by the v13 plugin and, unless you have unofficially updated NodeJS to v18 or v20, there is no way that the error message can be the same and there is zero chance that it will work with older NodeJS versions. If you have not upgraded your NodeJS on HOOBS to a supported NodeJS version, then there is no more reason to speak about it in this thread and it only adds confusion.
If you have logs from an environment with a supported NodeJS version (ideally v20, sounds like your Synology environment meets this requirement), please feel free to post them here, they are not "mumbo jumbo", they are detailed information about what is happening and are required to provide any insight into the issues you are having.
@Shaun-C2 Can you please verify your install method? You list the Operating System as Debian, is that just x86 or ARM architecture? Are you using a based Debian install and the instructions from: https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Debian-or-Ubuntu-Linux?
So far I'm not able to reproduce your issue so seeking more detail. One suggestion would be to make sure your plugin is disabled for at least 24 hours and then try again as I've sometimes seen Ring block IP addresses if they attempting to authenticate with invalid tokens too many times.
Thanks for looking at this. I shall reply Sunday when back home. However as I indicated i have two install on two different houses. At one house the plug in works fine and … i can also see accessories for the other house.I wonder if i need the same token at both sites ?Will try your suggestion. My install was using the raspberry pie installer from the pi website using the 64 bit homebridge variant.On 14 Aug 2024, at 5:48 AM, tsightler @.***> wrote: @Shaun-C2 Can you please verify your install method? You list the Operating System as Debian, is that just x86 or ARM architecture? Are you using a based Debian install and the instructions from: https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Debian-or-Ubuntu-Linux? So far I'm not able to reproduce your issue so seeking more detail. One suggestion would be to make sure your plugin is disabled for at least 24 hours and then try again as I've sometimes seen Ring block IP addresses if they attempting to authenticate with invalid tokens too many times.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
You definitely should not use the same token at both locations. You can use the same account, but each instance of ring-homebridge is effectively a separate device, the same as a device running the Ring app. If you had two phones, you might login to each using the same username/password, but they would not use the same token. Actually, the error above almost looks like it's attempting to use a token that was issued to a different device based on this error message:
'The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.'
@Shaun-C2 Any update?
I shut down the plug in for a week whilst i was overseas. Then renewed the token and re-enabled it. Same issue.My next plan is to unenrol the bell. Then re enrol with a separate log in and see if that works .It seems to identify the two sites but then i still get the cannot connect to server issue at one site.I shall be back at that house in a couple of weeks and will try then.On 29 Aug 2024, at 5:06 AM, tsightler @.***> wrote: @Shaun-C2 Any update?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
It's a very strange problem for sure, but I don't think that it is a plugin bug. The code simply calls native fetch API built into NodeJS v20, and if the native fetch implementation cannot communicate with the Ring servers I'm not sure what we could possibly ever do about that.
I would maybe suggest, instead of installing from backup, just removing the plugin completely and re-installing.
So I have deleted all the approved devices from the ring app.
I have a Pi zero which I have a clean reload with the ring plug in loaded
I have linked the ring account successfully …
The Rasp Pi appears as an authorised device on the ring app
Still no joy
[05/09/2024, 17:07:11] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "timeout of 10000ms exceeded" - see https://homebridge.io/w/JJSz6 for help. [05/09/2024, 17:07:11] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "timeout of 10000ms exceeded" - see https://homebridge.io/w/JJSz6 for help. [05/09/2024, 17:07:15] [Ring] Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:07:30] [Ring] Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:07:45] [Ring] Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:00] [Ring] Failed to reach Ring server at https://oauth.ring.com/oauth/token. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:23] [Ring] Found the following locations: [05/09/2024, 17:08:23] [Ring] locationId: e27e978e-2d8f-4216-ae78-550d251d0b19 - Te Anau [05/09/2024, 17:08:23] [Ring] locationId: af7bd812-b3f7-4ba5-b43a-2a50ea34bc69 - Scroggs Hill [05/09/2024, 17:08:29] [Ring] 404 from endpoint https://api.ring.com/clients_api/doorbots/412121515/motions_subscribe [05/09/2024, 17:08:29] [Ring] Session hardware_id not found. Creating a new session and trying again. [05/09/2024, 17:08:29] [Ring] 404 from endpoint https://api.ring.com/clients_api/doorbots/412121515/subscribe [05/09/2024, 17:08:29] [Ring] Session hardware_id not found. Creating a new session and trying again. [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/motions_subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:33] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:39] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/session. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/motions_subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:48] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:08:54] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/session. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/motions_subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:03] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:09] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/session. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://api.ring.com/clients_api/doorbots/420296495/motions_subscribe. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/e27e978e-2d8f-4216-ae78-550d251d0b19. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to reach Ring server at https://prd-api-us.prd.rings.solutions/api/v1/mode/location/af7bd812-b3f7-4ba5-b43a-2a50ea34bc69. fetch failed. Trying again in 5 seconds... [05/09/2024, 17:09:18] [Ring] Failed to connect push notification receiver [05/09/2024, 17:09:18] [Ring] TypeError: fetch failed at node:internal/deps/undici/undici:13178:13 at processTicksAndRejections (node:internal/process/task_queues:95:5) at retry @./push-receiver/src/utils/request.ts:17:16) at checkIn @./push-receiver/src/gcm.ts:24:25) at exports.default @./push-receiver/src/gcm.ts:18:21) at PushReceiver.registerIfNeeded @./push-receiver/src/client.ts:165:21) at PushReceiver.connect @.***/push-receiver/src/client.ts:93:9) at RingApi.registerPushReceiver (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/api.js:177:13) { [cause]: ConnectTimeoutError: Connect Timeout Error at onConnectTimeout (node:internal/deps/undici/undici:2331:28) at node:internal/deps/undici/undici:2283:50 at Immediate._onImmediate (node:internal/deps/undici/undici:2315:13) at processImmediate (node:internal/timers:483:21) { code: 'UND_ERR_CONNECT_TIMEOUT' } }
Shaun Costello @.***
On 31 Aug 2024, at 11:30 AM, tsightler @.***> wrote:
It's a very strange problem for sure, but I don't think that it is a plugin bug. The code simply calls native fetch API built into NodeJS v20, and if the native fetch implementation cannot communicate with the Ring servers I'm not sure what we could possibly ever do about that.
I would maybe suggest, instead of installing from backup, just removing the plugin completely and re-installing.
— Reply to this email directly, view it on GitHub https://github.com/dgreif/ring/issues/1465#issuecomment-2322597881, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFFBIFRH2GXRDRFLAH43AITZUD6CDAVCNFSM6AAAAABMKB4XTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRSGU4TOOBYGE. You are receiving this because you were mentioned.
@Shaun-C2 If you look at the logs you can see that not all of the failed to connect messages are from homebridge-ring, for example:
[05/09/2024, 17:07:11] [Homebridge UI] [homebridge-config-ui-x] Failed to check registry.npmjs.org for updates: "timeout of 10000ms exceeded" - see https://homebridge.io/w/JJSz6 for help.
This is from the homebridge-ui, although it is basically the same error. There is clearly some issue with that system being able to connect reliably to internet resources that is impacting not just hombridge-ring, but other services running on that host. There is little that any of us can do here as the plugin cannot work if it is unable to reach the internet.
Is there an existing issue for this?
Describe The Bug
I have two identical installations. One developed a hardware problem replaced the SD card and loaded the back up file. Ring no longer shows any accessories in Homebridge and the HomeKit accessories no longer work. All other accessories show in home bridge and home kit. Have deleted hub from HomeKit and preexisting accessories . knocked it back to the ground and rebuilt clean install. also generated new token ( more than once) . Nothing seems to work.
To Reproduce
erase SD card. Load Home bridge. Load back up ( previously working).
Expected behavior
the back up to recreate previous .
Relevant log output
Screenshots
Homebridge Ring Config
Additional context
No response
OS
Raspian
Node.js Version
v20.16.0
NPM Version
not sure.
Homebridge/HOOBs Version
1.8.4
Homebridge Ring Plugin Version
13.0.1
Operating System
Debian GNU/Linux Bookworm (12)