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

Initialization fails when auth file invalid or errored #40

Open
f1ames opened this issue Sep 5, 2023 · 1 comment
Open

Initialization fails when auth file invalid or errored #40

f1ames opened this issue Sep 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@f1ames
Copy link
Contributor

f1ames commented Sep 5, 2023

Initializing extension will fail there is an issue with auth.yaml file reading.

It may happen when there is an error reading it or auth format change. The 2nd happened between 0.2.0 and 0.3.0 version, and the extension would fail to initialize for anyone who had been authenticated (meaning auth file present) and updated to 0.3.x.

Happened to @WitoDelnat with Activating extension ‘Kubeshop.monokle’ failed: Cannot read properties of undefined (reading ‘access_token’). error.


This means there is error handling missing somewhere, most probably during Authenticator initialization (which reads auth file) in:

@f1ames f1ames added the bug Something isn't working label Sep 5, 2023
@WitoDelnat
Copy link

I managed to get the extension working again after deleting the old auth.yaml file. I guess it's not the highest priority given that most users will have started at the >v3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants