Skip to content
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

Fix config flow when cookies file expires #32

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Fix config flow when cookies file expires #32

merged 1 commit into from
Aug 12, 2024

Conversation

pnbruckner
Copy link
Owner

@pnbruckner pnbruckner commented Aug 12, 2024

When a cookies file expires, this creates a repair issue requiring the config entry to be reconfigured. However, when the (reauth) config flow is started, an error results stating the config flow cannot be loaded (internal error 500.) This is due to the way the reauth flow works, which the code did not handle properly. This change fixes that problem by saving the cookies file path (cf_path) for the async_step_old_cookies_invalid method.

Fixes #28. Note, this only fixes the reauth config flow. It does not address the reason the cookies file is expiring in the first place.

@pnbruckner pnbruckner merged commit 1383d03 into main Aug 12, 2024
4 checks passed
@pnbruckner pnbruckner deleted the reauth branch August 12, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
1 participant