chrisjshull / homebridge-nest

Nest plugin for HomeBridge
699 stars 112 forks source link

Reauthenticating on Nest service ... #579

Closed nikhilweee closed 1 year ago

nikhilweee commented 1 year ago

Describe the bug After a few hours, I am unable to communicate with my nest devices and the logs look like this:

[11/8/2022, 5:48:17 AM] [Nest] API observe: error { code: 'ETIMEDOUT' }
[11/8/2022, 5:48:17 AM] [Nest] ^^^^^ this message is for information only, it does not mean there is a problem, please do not file a ticket unless you actually have a problem with the function of the plug-in
[11/8/2022, 5:48:17 AM] [Nest] Retrying in 10 seconds.
[11/8/2022, 6:22:22 AM] [Nest] API observe: error { code: 'ETIMEDOUT' }
[11/8/2022, 6:22:22 AM] [Nest] ^^^^^ this message is for information only, it does not mean there is a problem, please do not file a ticket unless you actually have a problem with the function of the plug-in
[11/8/2022, 6:22:22 AM] [Nest] Retrying in 10 seconds.
[11/8/2022, 6:22:23 AM] [Nest] Reauthenticating on Nest service ...
[11/8/2022, 6:54:03 AM] [Nest] API observe: error { code: 'ETIMEDOUT' }
[11/8/2022, 6:54:03 AM] [Nest] ^^^^^ this message is for information only, it does not mean there is a problem, please do not file a ticket unless you actually have a problem with the function of the plug-in
[11/8/2022, 6:54:03 AM] [Nest] Retrying in 10 seconds.
[11/8/2022, 7:27:00 AM] [Nest] API observe: error { code: 'ETIMEDOUT' }
[11/8/2022, 7:27:00 AM] [Nest] ^^^^^ this message is for information only, it does not mean there is a problem, please do not file a ticket unless you actually have a problem with the function of the plug-in
[11/8/2022, 7:27:00 AM] [Nest] Retrying in 10 seconds.
[11/8/2022, 7:27:01 AM] [Nest] Reauthenticating on Nest service ...

I am able to connect as soon as I restart homebridge. If it matters, I have homebridge installed on my Mac. I thought this was because I was using the refresh token method, so I changed to the cookie method and things are still the same. Surprisingly, the refresh tokens were still working for me when I changed to cookies. Although this issue has been persistent ever since I installed homebridge-nest. Any help would be greatly appreciated.

To Reproduce Steps to reproduce the behavior:

  1. Setup a device that uses Nest, such as the Nest thermostat
  2. Wait for a few hours, and you will no longer be able to communicate
  3. That's all you need to do.

Expected behavior

Include with your bug report this version info:

node --version
v18.11.0
homebridge --version
1.5.1

Make sure you have the latest LTS from https://nodejs.org and the latest packages: npm upgrade -g homebridge homebridge-nest

Also include debug log output from startup through seeing the issue: DEBUG=* homebridge -D

nikhilweee commented 1 year ago

It's been running fine the past couple of days. I guess an npm upgrade helped. Will reopen if this occurs again.