-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
component: clientissues regarding the CLIissues regarding the CLIproject: Coretype: bugSomething isn't workingSomething isn't working
Description
Describe the bug
In some strange edge cases, the .jwks file that resides in ~/.medperf_config/.tokens can end up empty. When that happens, Authentication fails, as medperf tries to read this file as a JSON object and can't figure out how to parse empty files.
To Reproduce
- Create an empty
.jwksfile in~/.medperf_config/.tokens. Rename the previos one if needed - Sign out of medperf.
- Try to sign back in. A
JSONDecodeErrorwill be raised.
Expected behavior
While the expected behavior should be to completely avoid generating empty .jwks file, a good additional behavior is to try to read the file and if it fails remove the corrupted one an regenerate it.
Metadata
Metadata
Assignees
Labels
component: clientissues regarding the CLIissues regarding the CLIproject: Coretype: bugSomething isn't workingSomething isn't working