Giter Site home page Giter Site logo

Comments (7)

fsaris avatar fsaris commented on August 18, 2024 1

Can you test version 0.0.10 to see if it's still happens?

from home-assistant-zonneplan-one.

arnoldpistorius avatar arnoldpistorius commented on August 18, 2024

The issue started this morning again. Now having some logging. Seems that at some point the service returns 503 Service Unavailable and then the integration does not recover from that:

2022-03-18 10:16:55 INFO (MainThread) [custom_components.zonneplan_one.coordinator] _async_update_data: start
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.api] ZonneplanAPI response header: <CIMultiDictProxy('Date': 'Fri, 18 Mar 2022 09:16:55 GMT', 'Server': 'Apache', 'Content-Length': '299', 'Connection': 'close', 'Content-Type': 'text/html; charset=iso-8859-1')>
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.api] ZonneplanAPI response status: 503
2022-03-18 10:16:55 ERROR (MainThread) [custom_components.zonneplan_one.coordinator] Authentication failed while fetching zonneplan_one data: 503, message='Service Unavailable', url=URL('https://app-api.zonneplan.nl/user-accounts/me')
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.coordinator] Finished fetching zonneplan_one data in 0.346 seconds (success: False)
2022-03-18 10:16:55 INFO (MainThread) [custom_components.zonneplan_one.config_flow] __init__
2022-03-18 10:16:55 DEBUG (MainThread) [custom_components.zonneplan_one.config_flow] reauth {'auth_implementation': 'zonneplan_one', 'token': {'token_type': 'Bearer', 'expires_in': 28800, 'access_token': '**REDACTED**', 'refresh_token': '**REDACTED**', 'expires_at': 1647598975.465228}, 'email': '**REDACTED**'}

After this happens, the zonneplan_one component doesn't log anything anymore (it happened almost 4 hours ago).

from home-assistant-zonneplan-one.

arnoldpistorius avatar arnoldpistorius commented on August 18, 2024

Tagging you @fsaris :)

from home-assistant-zonneplan-one.

fsaris avatar fsaris commented on August 18, 2024

don't you get an notification to re-authenticate the app in this case? With version 0.0.10 this should be improved

from home-assistant-zonneplan-one.

arnoldpistorius avatar arnoldpistorius commented on August 18, 2024

Yes I get that, but it happens not in a consequent interval sometimes a few weeks, sometimes a few hours. The mobile app doesnt have to reauthenticate. So I guess something can be improved in refreshing the access token?

from home-assistant-zonneplan-one.

arnoldpistorius avatar arnoldpistorius commented on August 18, 2024

Iโ€™ve just installed it via HACS, letโ€™s see how it goes! ๐Ÿ‘

from home-assistant-zonneplan-one.

arnoldpistorius avatar arnoldpistorius commented on August 18, 2024

@fsaris looks like the issue is not happening anymore. Thanks for the update!!

from home-assistant-zonneplan-one.

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.