New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENETUNREACH: Failed to reach Ring server at https://oauth.ring.com/oauth/token #523
Comments
Same error here, but cannot fix it. (Restart doesn’t help) |
Same error here. Restart seems to get it going again for a few hours then starts throwing error again. Raspbian |
Same issue here. Attempting to recreate the 2FA code results in an error saying that my login info is incorrect, but I can log into the ring site with the same info just fine. |
Mmh no respond :/ |
I’ve tried removing plug-in and reinstalling and same error |
@dxdc sorry for the delayed response, spending time with the family over the holidays. Have you figured out anything on this issue? Honestly, I think you are better at debugging these DNS issues than I am and I haven't seen this issue at all. My guess is that the DNS caching is causing the issue to permanently break the plugin once it gets a bad dns record, but at some point it's getting a bad DNS response that points to localhost or something equivalent. It may be as simple as updating node since it looks like you are on a pretty old version. |
happy holidays @dgreif! I haven't seen it since the router restart. A lot of people also have routers that self-update firmware, so wondering if the timing of these firmware updates/router brands has something to do with it.
^^ I think this is the issue. |
@dxdc glad to hear it hasn't persisted. Looks like i'm currently resetting the DNS cache on |
@dgreif What about adding some kind of counter/timer to check for a certain number of failures before resetting the cache? My concern is in a case where it could result in persistent DNS hits every 5 seconds in the case that Ring blocked the connection for example. And, sometimes these are caused by micro outages. Or, is there a way to not store the 'bad' cached value in the case of a failed connection only? Maybe I'm overthinking it. Just want to avoid the situation where it does DNS lookups every 5 seconds on a "forever" type loop... |
This helped me solve this problem - on an Eero router |
@dxdc I've always seen DNS lookups as a pretty light-weight operation. Besides blowing up some users pi-hole watchers, is there really much concern if the plugin does DNS lookups? I want to make it optimal, but I care more about preventing the plugin from breaking than a little extra network traffic. @thechrisreese thanks for pointing out the eero info. Eero has been a major pain for live streaming, so no surprise if it is causing DNS issues as well 😅 |
@dgreif I should have clarified! I don't care so much about the DNS lookups, more the pings to the Ring servers (resulting in failure) every 5 seconds. Not sure if that should continue on a forever-type basis.. maybe exponential backoff would be better? For instance, if a user changed their password. Anyway, just thinking about it. |
Bug Report
Describe the Bug
A clear and concise description of the problem...Today, I noticed a slew of these in my logs (every 5 seconds). And, Ring cams in HK were not updating either.
Restarting HB fixed the problem entirely, but it got me wondering why it happened in the first place. I initiated a router restart at the time the error started. I'm not sure whether or not the cameras were in use (e.g., via HK) at the time of the router restart... though not sure if that would have impacted.
I had two thoughts relating to this:
Maybe it's some kind of caching issue with the DNS when the router was restarted? I'm not as familiar with that logic, but curious if null value could be stored due to this (e.g., some kind of null response from DNS) and then it affects future retries. Possibly even related to IPV6?
Maybe an exponential backoff is better than trying every 5 seconds? If Ring is rate limiting the pinging, not sure if trying every 5 seconds is helpful for that?
Noting it in case this was related to prior issues, at least in part.
Environment
The text was updated successfully, but these errors were encountered: