Giter Club home page Giter Club logo

Comments (6)

msl2424 avatar msl2424 commented on June 16, 2024 2

Update: I re-started the add-on, and now it's working. The issue of "refresh token is not valid" occurs every now and then. Hard to tell why. Thanks for the prompt response.

from ring.

tsightler avatar tsightler commented on June 16, 2024 1

ring-hassio is a long dead project based on ring-client-api from ages ago that is unlikely to work at this point. Ring API changes over time and dead projects will eventually not work. I noticed you forked it and just replaced ring-client-api with new major version, but doesn't appear that you made other required changes.

I'm not sure what you are trying to do, but if you are looking for live streaming, I might humbly suggest my own project, ring-mqtt as a replacement for ring-hassio.

from ring.

tsightler avatar tsightler commented on June 16, 2024 1

@msl2424 Not every problem Ring has is related to this project, I'd always suggest, when you experience a sudden issue, that you check Ring status first (well, after giving them 30 mintues or so to acknowledge that the issue exist). Ring is currently experiencing a major system outage:

https://status.ring.com/

Well, technically they claim everything is back, but it was at least a 2.5 hour outage which has only been marked as resolved in the last 15 minutes or so. Authentication was down for all apps and web pages.

from ring.

tsightler avatar tsightler commented on June 16, 2024 1

I'm going to close this now as we know that current ring-client-api works and can generate usable tokens. If you have additional issues in the future, please provide detailed steps and sample code from current versions of ring-client-api and we can look into it.

from ring.

msl2424 avatar msl2424 commented on June 16, 2024

I have a related issue. This evening I suddenly got the following message in my logs:

2023-07-28T23:21:55.317Z ring-mqtt Refresh token is not valid. Unable to authenticate with Ring servers. See https://github.com/dgreif/ring/wiki/Refresh-Tokens 2023-07-28T23:22:24.312Z ring-mqtt Websocket for location id e952c570-d654-4e0c-9f91-debf3303c150 is disconnected

To resolve, I attempted to re-authenticate via the Web UI, but I received this message in the logs:

2023-07-29T00:08:44.234Z ring-mqtt Username/Password was accepted, waiting for 2FA code to be entered. 2023-07-29T00:08:48.652Z ring-mqtt Saving updated refresh token to state file 2023-07-29T00:08:48.653Z ring-mqtt A new refresh token was generated, attempting to re-establish connection to Ring API 2023-07-29T00:08:49.731Z ring-mqtt Successfully saved updated state file: /data/ring-state.json 2023-07-29T00:08:50.656Z ring-mqtt Refresh token is not valid. Unable to authenticate with Ring servers. See https://github.com/dgreif/ring/wiki/Refresh-Tokens 2023-07-29T00:08:50.657Z ring-mqtt Failed to re-establish connection to Ring API using generated refresh token

The wiki listed at https://github.com/dgreif/ring/wiki/Refresh-Tokens was not super helpful to me. Any guidance on what to do to re-connect Ring-MQTT with Video Streaming? All my Ring entities are offline in Home Assistant.

from ring.

tsightler avatar tsightler commented on June 16, 2024

It's not that hard to tell why, you can almost always be sure it's a Ring outage. Ring has lots of short, unacknowledged outages, especially with authentication. I agree there could be improvements in recoverability from these issues, but as we don't control Ring servers, it's somewhat difficult to predict the various failure modes that can occur and pretty much impossible to test such scenarios. We can emulate things like no connectivity at all, but partial failures where existing connections are still alive but new connections report the token being invalid can be difficult to deal with.

from ring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.