I’m getting this error when I attempt to generate a new refresh token in the homebridge config ui: "TypeError: Cannot use 'in' operator to search for 'error' in
406 Not Acceptable
406 Not Acceptable
openresty
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:186:119)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
I also can’t log in the Scrypted plugin, or the app. I’ve called Ring support and they haven’t been able to help me with the login issue. Hope you can provide some insight.
To Reproduce
Attempt to refresh token by logging in to ring account. Error is produced.
Expected behavior
Login is successful and I’m able to put in my 2FA code to generate a new refresh token.
Relevant log output
[07/07/2023, 00:58:17] [homebridge-ring] HTTPError: Response code 401 (Unauthorized)
at Request.<anonymous> (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/got/dist/source/as-promise/index.js:118:42)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 'ERR_NON_2XX_3XX_RESPONSE',
timings: {
start: 1688709497071,
socket: 1688709497094,
lookup: 1688709497100,
connect: 1688709497114,
secureConnect: 1688709497148,
upload: 1688709497150,
response: 1688709497223,
end: 1688709497234,
error: undefined,
abort: undefined,
phases: {
wait: 23,
dns: 6,
tcp: 14,
tls: 34,
request: 2,
firstByte: 73,
download: 11,
total: 163
}
}
}
[07/07/2023, 00:58:17] [homebridge-ring] Request to https://api.ring.com/devices/v1/locations failed:
[07/07/2023, 00:58:17] [homebridge-ring] Error: Refresh token is not valid. Unable to authenticate with Ring servers. See https://github.com/dgreif/ring/wiki/Refresh-Tokens
at RingRestClient.getGrantData (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:140:15)
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:143:32)
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:184:29)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[07/07/2023, 00:58:17] [homebridge-ring] Error connecting to API
[07/07/2023, 00:58:17] [homebridge-ring] Error: Refresh token is not valid. Unable to authenticate with Ring servers. See https://github.com/dgreif/ring/wiki/Refresh-Tokens
at RingRestClient.getGrantData (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:140:15)
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:143:32)
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:184:29)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[07/07/2023, 01:00:18] [Homebridge UI] [homebridge-ring] TypeError: Cannot use 'in' operator to search for 'error' in <html>
<head><title>406 Not Acceptable</title></head>
<body>
<center><h1>406 Not Acceptable</h1></center>
<hr><center>openresty</center>
</body>
</html>
at RingRestClient.getAuth (/var/lib/homebridge/node_modules/homebridge-ring/node_modules/ring-client-api/lib/rest-client.js:186:119)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Is there an existing issue for this?
Describe The Bug
I’m getting this error when I attempt to generate a new refresh token in the homebridge config ui: "TypeError: Cannot use 'in' operator to search for 'error' in
406 Not Acceptable
I also can’t log in the Scrypted plugin, or the app. I’ve called Ring support and they haven’t been able to help me with the login issue. Hope you can provide some insight.
To Reproduce
Attempt to refresh token by logging in to ring account. Error is produced.
Expected behavior
Login is successful and I’m able to put in my 2FA code to generate a new refresh token.
Relevant log output
Screenshots
No response
Homebridge Ring Config
Additional context
No response
OS
Raspbian GNU/Linux Bullseye
Node.js Version
v18.16.1
NPM Version
Not sure
Homebridge/HOOBs Version
V1.6.1
Homebridge Ring Plugin Version
v11.8.0
Operating System
Docker