Ring: Error connecting to API

Created on 21 Jun 2020  Â·  23Comments  Â·  Source: dgreif/ring

New issue for me this morning. Devices won't respond. Logs show me these errors:

Just me?

[6/21/2020, 1:13:02 PM] [Ring] Request to https://app.ring.com/rhq/v1/devices/v1/locations failed with status 406. Response body: 406 Not Acceptable

[6/21/2020, 1:13:02 PM] [Ring] Error connecting to API
[6/21/2020, 1:13:02 PM] [Ring] { HTTPError: Response code 406 (Not Acceptable)
at onResponse (/usr/local/lib/node_modules/homebridge-ring/node_modules/got/dist/source/as-promise/index.js:124:28)
at process._tickCallback (internal/process/next_tick.js:68:7)
name: 'HTTPError',
code: undefined,
timings:
{ start: 1592745182356,
socket: 1592745182489,
lookup: 1592745182489,
connect: 1592745182489,
secureConnect: 1592745182489,
upload: 1592745182489,
response: 1592745182529,
end: 1592745182536,
error: undefined,
abort: undefined,
phases:
{ wait: 133,
dns: 0,
tcp: 0,
tls: 0,
request: 0,
firstByte: 40,
download: 7,
total: 180 } } }

bug

Most helpful comment

Should be fixed in v9.3.3. Ring is now requiring a user-agent header on some requests. Doesn't need to be anything specific, just present. Huge thanks to @cclarke99, knowing the versions really helped narrow it down. Let me know if the update fixes it for you.

All 23 comments

same issue here

And here - Logs nearly identical but the timing values are slightly different.

Same here anyone get a response yet?

Had a separate, recurring issue that was just replaced, or maybe even supplemented by this issue. Hope this gets checked out soon

Same issue here. Using the RPI homebridge image on a pi 4. Only thing I changed was installing ffmpeg 2.0.0, and rebooted the pi.

Lots of reports of this issue today. It’s usually a rate limiting situation where a different homebridge plugin caused your homebridge server to crash over and over again. Ring doesn’t show any issues on their status page currently. It is possible that they tweaked their rate limiting. I’m unable to look into it today, but hopefully the issue will resolve on its own in the next 24 hours

Running into the same issue. Plugin seems unable to connect to the API. Forcing a refresh token update / unlinking + reconnecting the Ring account did not solve the issue (not even temporarily). API has been disconnected for me as of 50 minutes ago (last snapshot update from wired floodlight cam).

I started getting the same error since yesterday. Took all usual steps to no resolution.
Have old image that was working early May so restored it and all seems working again. My guess is this may not have anything to do with API as old version works.

BTW, upon restoring I see Ring plugin version 7.2.5 and there is no offer for update either. I have Bond plugin that was available for update, updated Bond and rebooted and all seeems to work. Guess there is something that changed for Ring plugin version 9.3.2.

Edit - HOOBS version
Just noticed that the old image has HOOBS version 3.1.26 and offers 3.2.6 that I haven’t changed

Edit 2 - @dgreif, I am not sure if this can be attributed to API rate limiting as the old version works perfectly fine, including 3 cameras that update including seamless live streaming

IMG_0312
IMG_0313

Same issue.

Same here.
HTTPError: Response code 406 (Not Acceptable)

I started to notice this after a restart. I'm not sure if the issue also happened before the restart.

Yup same issue

Just installed this today and had the same problem.

Same problem here, upgraded all, was working fine before now, comes up with same error, no longer able to use the ring devices

@dgreif I am able to get this working again on plugin version 8.2.0 but everything back to 9.0.0 are broken for me on a pretty generic Homebridge installation. Happy to help with any troubleshooting if needed.

Same issues here as well. It started sometime yesterday night based on the logs. Everything seems to be working well before that. I am on version 9.1.0. Happy to help with any debug or logs.

Ditto.

Same here, on version 9.1.0 (also tried on the latest version but encountered the same problem)

@cclarke99 thanks for the info on versions that work. Would you mind trying 8.2.0 and 9.0.0 both again to 100% confirm that’s where they line is? If so, that should definitely help narrow it down.

For everyone else, please no more “same here” or “ditto” posts. 2 or 3 are useful to confirm that it’s a wide spread issue, but beyond that it is just extra noise in this thread. I encourage you to add comments if you have something constructive to add to the conversation.

I’m not able to look into this issue today so everyone will need to be a little patient. If someone is able to dig into it and open a pull request, I’d be happy to take a look at it and get an update out ASAP

@cclarke99 thanks for the info on versions that work. Would you mind trying 8.2.0 and 9.0.0 both again to 100% confirm that’s where they line is? If so, that should definitely help narrow it down.

For everyone else, please no more “same here” or “ditto” posts. 2 or 3 are useful to confirm that it’s a wide spread issue, but beyond that it is just extra noise in this thread. I encourage you to add comments if you have something constructive to add to the conversation.

I’m not able to look into this issue today so everyone will need to be a little patient. If someone is able to dig into it and open a pull request, I’d be happy to take a look at it and get an update out ASAP

Testing now, will post results shortly.

@cclarke99 thanks for the info on versions that work. Would you mind trying 8.2.0 and 9.0.0 both again to 100% confirm that’s where they line is? If so, that should definitely help narrow it down.

For everyone else, please no more “same here” or “ditto” posts. 2 or 3 are useful to confirm that it’s a wide spread issue, but beyond that it is just extra noise in this thread. I encourage you to add comments if you have something constructive to add to the conversation.

I’m not able to look into this issue today so everyone will need to be a little patient. If someone is able to dig into it and open a pull request, I’d be happy to take a look at it and get an update out ASAP

Ok, confirmed again that 8.2.0 works but 9.0.0 fails with the following error. Now, here's the interesting thing. I've been using the 9.x version for some time and updated to 9.3.2 the other day and it worked fine until this morning. Again, happy to help do whatever testing needed. I've turned debug logging on as well and will leave it on.

This error comes in immediately following the load of cached Ring accessories.
`[6/21/2020, 2:47:21 PM] [Ring] Request to https://app.ring.com/rhq/v1/devices/v1/locations failed with status 406. Response body: 406 Not Acceptable

[6/21/2020, 2:47:21 PM] [Ring] Error connecting to API
[6/21/2020, 2:47:21 PM] [Ring] HTTPError: Response code 406 (Not Acceptable)
at onResponse (/usr/lib/node_modules/homebridge-ring/node_modules/got/dist/source/as-promise/index.js:124:28)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
{
code: undefined,
timings: {
start: 1592776040699,
socket: 1592776040925,
lookup: 1592776040925,
connect: 1592776040925,
secureConnect: 1592776040925,
upload: 1592776040925,
response: 1592776041000,
end: 1592776041002,
error: undefined,
abort: undefined,
phases: {
wait: 226,
dns: 0,
tcp: 0,
tls: 0,
request: 0,
firstByte: 75,
download: 2,
total: 303
}
}
}`

Should be fixed in v9.3.3. Ring is now requiring a user-agent header on some requests. Doesn't need to be anything specific, just present. Huge thanks to @cclarke99, knowing the versions really helped narrow it down. Let me know if the update fixes it for you.

Just updated to 9.3.3 and the issue seems to be fixed. Thanks a ton for the quick fix!!!

Should be fixed in v9.3.3. Ring is now requiring a user-agent header on some requests. Doesn't need to be anything specific, just present. Huge thanks to @cclarke99, knowing the versions really helped narrow it down. Let me know if the update fixes it for you.

@dgreif Looks good after the 9.3.3 update. Thank you, thank you!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steets250 picture steets250  Â·  5Comments

DustinBryant picture DustinBryant  Â·  6Comments

onefish2 picture onefish2  Â·  5Comments

malmentm picture malmentm  Â·  4Comments

mrtekkid picture mrtekkid  Â·  3Comments