-
Notifications
You must be signed in to change notification settings - Fork 494
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
error while loading view: aws.AmazonQChatView (DiskCacheError) #6140
Comments
Looks like there are problems with the filesystem. We should handle this in a better way, but likely will still have problems if filesystem operations are failing. |
It looks like the cache file is somehow becoming malformed. I've been seeing this in other places outside of auth (eg crash monitoring). Agreed we should look to handle this more gracefully. I'll need to look in to it, but we may be able to force a token refresh to get a new cache. Otherwise we just invalidate, and at least the user can log in again. @LewS would you be fine to paste the contents (with IDs/Tokens obfuscated) from: Then you should be able to log out then in again and it should be running again. |
Hey Nikolas, 6e60c8cc5bae992900fecfad4781120f41eb6124.json is 0 bytes, so nothing to add :/ |
## Problem: When we loaded sso cache from disk, we would only invalidate (leading to a reauth prompt) if the cache file was missing. But if the cache file was present, though its content was malformed, we would incorrectly treat it as recoverable by throwing instead of returning undefined. Users would get stuck in a state where all future api calls would fail, and they'd never get a prompt to reauth to fix their SSO session. ## Solution: If we detect a SyntaxError treat it as non-recoverable, meaning it will trigger a reauth. Also added some code to validate the content of the SSO cache we loaded from disk to ensure it is what we expected. Fixes aws#6140 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: nkomonen-amazon <[email protected]>
Problem
AmazonQ worked for the first week or so, then when loaded shows the error
An error occurred while loading view: aws.AmazonQChatView
AmazonQ is set to auto update.
Udating vs code, does not fix the problem.
Steps to reproduce the issue
Install AmazonQ and wait for a week or so...
Amazon Q Logs.log
Expected behavior
Ability to use amazonq chat functionality
System details (run
AWS: About
and/orAmazon Q: About
)The text was updated successfully, but these errors were encountered: