microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.66k stars 29.44k forks source link

Tokens to Microsoft accounts lost when switching contexts #135934

Closed BladeMF closed 2 years ago

BladeMF commented 3 years ago

Issue Type: Bug

I use 3 accounts in VS Code:

  1. GitHub account (for the GitHub extension)
  2. Personal Microsoft account (for settings sync)
  3. Work or school Microsoft account (for Live Share)

When switching contexts between local (on the Windows host) or in a Docker container or in a WSL distro, the tokens for the Microsoft accounts seem to get lost. The "Microsoft authenticator" log says "Getting token failed: Error: Decryption failed". If I login then it's fine, but since I switch a lot, I have to login mutliple times a day. It is extremely annoying. I am unsure of the exact sequence of switches, but I can spend time trying to work them out if needed.

I am not sure if that has anything to do with any of the "authentication" issues here so please close it if duplicate.

VS Code version: Code 1.61.2 (6cba118ac49a1b88332f312a8f67186f7f3c1643, 2021-10-19T14:57:20.575Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.88GB (0.94GB free)| |Process Argv|D:\\Source\\repos\\CT\\test1a\\test1-docker --crash-reporter-id 522ee02e-1baf-4e53-aa2b-f88b96190164| |Screen Reader|no| |VM|0%|
Extensions (66) Extension|Author (truncated)|Version ---|---|--- vscode-sqlite|ale|0.13.0 tsl-problem-matcher|amo|0.5.0 atlascode|atl|2.9.1 shell-syntax|bma|1.0.3 npm-intellisense|chr|1.4.0 bracket-pair-colorizer|Coe|1.0.61 language-postcss|cpy|1.1.0 vue-peek|dar|1.0.2 vscode-eslint|dba|2.2.2 gitlens|eam|11.6.1 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.23 phpunit|ema|4.1.1 prettier-vscode|esb|9.0.0 auto-close-tag|for|0.5.12 auto-rename-tag|for|0.1.9 vscode-test-explorer|hbe|2.21.1 Ionide-FAKE|Ion|1.2.3 Ionide-fsharp|Ion|5.8.1 Ionide-Paket|Ion|2.0.0 php-cs-fixer|jun|0.2.8 auto-comment-blocks|kev|1.0.1 bash-ide-vscode|mad|1.11.0 twig-language|mbl|0.9.2 git-graph|mhu|1.30.0 dotenv|mik|1.0.1 vscode-apache|mrm|1.2.0 vscode-docker|ms-|1.17.0 csharp|ms-|1.23.16 dotnet-interactive-vscode|ms-|1.0.2520010 vscode-edge-devtools|ms-|1.3.1 python|ms-|2021.10.1365161279 vscode-pylance|ms-|2021.10.2 jupyter|ms-|2021.9.1101343141 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.3 remote-containers|ms-|0.202.5 remote-wsl|ms-|0.58.4 test-adapter-converter|ms-|0.1.4 vsliveshare|ms-|1.0.5043 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 debugger-for-chrome|msj|4.13.0 debugger-for-edge|msj|1.0.15 vetur|oct|0.35.0 material-icon-theme|PKi|4.10.0 vscode-git-flow|Psy|0.5.1 java|red|1.0.0 vscode-commons|red|0.0.6 vscode-yaml|red|1.0.0 vscode-autohotkey|sle|0.2.2 vscode-stylelint|sty|1.0.2 tabnine-vscode|Tab|3.4.33 vscode-bnf|Val|0.0.1 vscodeintellicode|Vis|1.2.14 vscode-java-debug|vsc|0.36.0 vscode-java-dependency|vsc|0.18.8 vscode-java-pack|vsc|0.18.6 vscode-java-test|vsc|0.32.0 vscode-maven|vsc|0.34.1 vscode-icons|vsc|11.6.0 vscode-import-cost|wix|2.15.0 change-case|wma|1.0.0 JavaScriptSnippets|xab|1.8.0 vscode-surround|yat|1.2.2 better-php-grammar|N/A|0.0.1
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30384386 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 vsccppwtct:30382698 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt3:30385195 dockerwalkthru:30377721 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30364666 pythonvspyt187:30373474 vsqsis200:30386379 vsaa593cf:30376535 vssld246cf:30386378 ```
TylerLeonhardt commented 2 years ago

I've been trying hard to reproduce this but haven't had any luck. It's been a few months now... @BladeMF/@neyaki would you mind confirming if you still see this with the most recent release of VS Code?

BladeMF commented 2 years ago

Hi @TylerLeonhardt , I will test again (I started using a Github account instead) and write back.

BladeMF commented 2 years ago

Hi @TylerLeonhardt, I have tested and it doesn't seem to happen on my machine either. Tried both Local -> Docker and Local -> WSL. What would you say if I left it like this and see if the problem resurfaces?

TylerLeonhardt commented 2 years ago

@BladeMF sounds great. I'll go ahead and close this for now since we believe it's fixed but if you see the issue again, please reach out here or in a new issue :)

BladeMF commented 2 years ago

@TylerLeonhardt, it started happening again. I can help you debug. If you want, we can reopen this and try to debug it, or I can go back to using GitHub account, your call.

What do you want to do?

TylerLeonhardt commented 2 years ago

Sorry I was on vacation. It sounds like you don't always hit this, is that right? Can you share the extensions you have installed in both environments (regular & WSL)?

BladeMF commented 2 years ago

They are different in each environment, which ones do you want?

BladeMF commented 2 years ago

I have to say that Live Share is suffering from the same effects as the settings sync.

TylerLeonhardt commented 2 years ago

Yes LiveShare uses the same mechinanism for auth as Settings Sync so it makes sense that they're both affected.

Can you tell me what extensions you have installed on the WSL side?

BladeMF commented 2 years ago

Is there an easy way to export the list?

BladeMF commented 2 years ago

    ~/.vscode-server/extensions ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── with root@Impero-ERA  at 19:13:56 
❯ ls -1
bmewburn.vscode-intelephense-client-1.8.1
eamodio.gitlens-11.7.0
editorconfig.editorconfig-0.16.4
hbenl.vscode-test-explorer-2.21.1
mhutchie.git-graph-1.30.0
ms-vscode.test-adapter-converter-0.1.5
tintrinh.php-refactor-0.0.7
BladeMF commented 2 years ago

Closed it by accident, sorry. Can you reopen please>

BladeMF commented 2 years ago

These are the local ones:

❯  code --list-extensions
ahmadalli.vscode-nginx-conf
alexcvzz.vscode-sqlite
amodio.tsl-problem-matcher
atlassian.atlascode
bmalehorn.shell-syntax
bmewburn.vscode-intelephense-client
christian-kohler.npm-intellisense
cpylua.language-postcss
dariofuzinato.vue-peek
dbaeumer.vscode-eslint
eamodio.gitlens
EditorConfig.EditorConfig
eg2.vscode-npm-script
emallin.phpunit
esbenp.prettier-vscode
formulahendry.auto-close-tag
formulahendry.auto-rename-tag
hbenl.vscode-test-explorer
Ionide.Ionide-FAKE
Ionide.Ionide-fsharp
Ionide.Ionide-Paket
junstyle.php-cs-fixer
kevinkyang.auto-comment-blocks
mads-hartmann.bash-ide-vscode
mblode.twig-language
mhutchie.git-graph
mikestead.dotenv
mrmlnc.vscode-apache
ms-azuretools.vscode-docker
ms-dotnettools.csharp
ms-dotnettools.dotnet-interactive-vscode
ms-edgedevtools.vscode-edge-devtools
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-wsl
ms-vscode.powershell
ms-vscode.test-adapter-converter
ms-vsliveshare.vsliveshare
ms-vsliveshare.vsliveshare-audio
ms-vsliveshare.vsliveshare-pack
msjsdiag.debugger-for-chrome
msjsdiag.debugger-for-edge
octref.vetur
PKief.material-icon-theme
PsykoSoldi3r.vscode-git-flow
redhat.java
redhat.vscode-commons
redhat.vscode-yaml
searKing.preview-vscode
Shan.code-settings-sync
slevesque.vscode-autohotkey
stylelint.vscode-stylelint
TabNine.tabnine-vscode
undefined_publisher.better-php-grammar
Vallentin.vscode-bnf
VisualStudioExptTeam.vscodeintellicode
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-maven
vscode-icons-team.vscode-icons
wayou.vscode-todo-highlight
wix.vscode-import-cost
wmaurer.change-case
xabikos.JavaScriptSnippets
yatki.vscode-surround
BladeMF commented 2 years ago

I've been trying to reproduce it for the last hour, succeeded just once but didn't look at the logs before closing. Since we spoke last and I enabled it it's been happening every single day. I think you just need to teach me where to look so we can gather information on the problem.

TylerLeonhardt commented 2 years ago

just to confirm, you're still seeing Getting token failed: Error: Decryption failed in your logs yeah? I just wanna make sure you're seeing the same issue instead of something else that looks like this issue.

BladeMF commented 2 years ago

That was the last time. Not sure what I am going to see now. Can you give me things to check so we can gather maximum info?

P.S. It hasn't happened this morning as well. What I did just before you wrote is to log off and login with a GitHub account (I assumed you're not going to reply soon). It would appear that the problem doesn't start immediately, it takes some days to happen (the same happened last time as well, that's why I assumed it was fixed). I suppose that is the reason you're having trouble reproducing it.

BladeMF commented 2 years ago

@TylerLeonhardt I think I managed to reproduce it:

  1. Open VS Code in Docker (everything looks good and sync is running)
  2. While that is open, Shift+Click on the taskbar icon so another instance is launched - the token is lost.

There is literally nothing in the logs. This is an excerpt from the Setting Sync log - you can see the token being lost at 2022-02-21 09:33:58.404:

[2022-02-21 09:33:31.956] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-21 09:33:31.966] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-21 09:33:31.971] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-21 09:33:33.126] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-21 09:33:33.132] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-21 09:33:33.208] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-21 09:33:33.209] [settingssync] [info] Sync done. Took 2788ms
[2022-02-21 09:33:57.462] [settingssync] [info] Auto Sync: Triggered by Activity
[2022-02-21 09:33:57.598] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2022-02-21 09:33:57.605] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-21 09:33:57.618] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-21 09:33:57.624] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-21 09:33:58.404] [settingssync] [info] Auto Sync: Suspended until auth token is available.
[2022-02-21 09:33:58.404] [settingssync] [info] Auto sync: Cancelled sync that is in progress
[2022-02-21 09:33:58.404] [settingssync] [info] Auto Sync: Stopped
[2022-02-21 09:33:58.406] [settingssync] [error] Canceled: Canceled

While the first window remained open, I managed to reproduce it twice. Unfortunately, after restarting that instance I could no longer reproduce the problem. :-(

Please advise.

BladeMF commented 2 years ago

It is happening all day today. Here is the Settings Sync log from 5 minutes ago:

[2022-02-21 17:20:18.713] [settingssync] [info] GlobalState: No changes found during synchronizing ui state.
[2022-02-21 17:20:18.819] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-21 17:20:18.820] [settingssync] [info] Sync done. Took 164ms
[2022-02-21 17:25:18.828] [settingssync] [info] Auto Sync: Triggered by Interval
[2022-02-21 17:25:19.053] [settingssync] [info] Request failed {"url":"https://vscode-sync.trafficmanager.net/v1/manifest","status":401,"execution-id":"59ab6e3e-fb81-4edf-b96e-1436abd9b777"}
[2022-02-21 17:25:19.054] [settingssync] [info] Settings Sync auth token failed microsoft false
[2022-02-21 17:25:19.054] [settingssync] [info] Auto Sync: Suspended until auth token is available.
TylerLeonhardt commented 2 years ago

Hi @BladeMF. We have the day off today but I wanted to let you know that I'm gonna add some additional logging around this to try and understand the issue more. Also I'll be back at my windows machine on Wednesday to attempt your new repro.

BladeMF commented 2 years ago

Thanks for the heads up! I'll keep posting any info I collect.

TylerLeonhardt commented 2 years ago

I added some new logging... you can give it a go in VS Code Insiders and maybe we'll get something useful in the logs.

BladeMF commented 2 years ago

On my way. My current thoughts are:

BladeMF commented 2 years ago

@TylerLeonhardt, all set. Now we wait.

BladeMF commented 2 years ago

I wonder whether the problem occurs when the token expires and needs to be renewed or extended?

BladeMF commented 2 years ago

It happened. While opening and closing multiple instances the one that was open throughout lost the token:

Log (Window)

[2022-02-24 15:19:49.183] [renderer1] [info] Settings Sync: Reset current session

Log (Main)

[2022-02-24 15:16:45.446] [main] [info] Extension host with pid 20224 exited with code: 0, signal: null.
[2022-02-24 15:19:23.219] [main] [info] window#load: attempt to load window (id: 5)
[2022-02-24 15:19:23.842] [main] [info] window#load: window reported ready (id: 5)
[2022-02-24 15:19:24.002] [main] [info] Starting extension host with pid 12148 (fork() took 12 ms).
[2022-02-24 15:19:24.003] [main] [info] ExtensionHostStarterWorker.start() took 13 ms.
[2022-02-24 15:19:43.488] [main] [info] window#load: attempt to load window (id: 5)
[2022-02-24 15:19:44.000] [main] [info] window#load: window reported ready (id: 5)
[2022-02-24 15:19:44.197] [main] [info] Starting extension host with pid 30172 (fork() took 10 ms).
[2022-02-24 15:19:44.198] [main] [info] ExtensionHostStarterWorker.start() took 10 ms.
[2022-02-24 15:19:44.375] [main] [info] Extension host with pid 12148 exited with code: 0, signal: null.
[2022-02-24 15:19:53.999] [main] [info] window#load: attempt to load window (id: 5)
[2022-02-24 15:19:54.551] [main] [info] window#load: window reported ready (id: 5)
[2022-02-24 15:19:54.774] [main] [info] Starting extension host with pid 3340 (fork() took 9 ms).
[2022-02-24 15:19:54.774] [main] [info] ExtensionHostStarterWorker.start() took 9 ms.
[2022-02-24 15:19:55.034] [main] [info] Extension host with pid 30172 exited with code: 0, signal: null.

Log (SettingsSync)

[2022-02-24 15:19:28.730] [settingssync] [info] Auto Sync: Triggered by Activity
[2022-02-24 15:19:28.946] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2022-02-24 15:19:28.954] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-24 15:19:28.963] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-24 15:19:28.968] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-24 15:19:30.678] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-24 15:19:30.685] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-24 15:19:30.777] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-24 15:19:30.779] [settingssync] [info] Sync done. Took 1959ms
[2022-02-24 15:19:32.065] [settingssync] [info] Auto Sync: Triggered by Activity
[2022-02-24 15:19:32.161] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2022-02-24 15:19:32.167] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-24 15:19:32.172] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-24 15:19:32.175] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-24 15:19:33.894] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-24 15:19:33.901] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-24 15:19:34.015] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-24 15:19:34.016] [settingssync] [info] Sync done. Took 1867ms
[2022-02-24 15:19:38.563] [settingssync] [info] Auto Sync: Triggered by Activity
[2022-02-24 15:19:40.020] [settingssync] [info] Settings: Updated remote settings
[2022-02-24 15:19:40.026] [settingssync] [info] Settings: Updated last synchronized settings
[2022-02-24 15:19:40.032] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-24 15:19:40.037] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-24 15:19:40.041] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-24 15:19:41.785] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-24 15:19:41.790] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-24 15:19:41.876] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-24 15:19:41.877] [settingssync] [info] Sync done. Took 3235ms
[2022-02-24 15:19:47.238] [settingssync] [info] Auto Sync: Triggered by Activity
[2022-02-24 15:19:47.338] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2022-02-24 15:19:47.344] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-24 15:19:47.348] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-24 15:19:47.351] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-24 15:19:49.081] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-24 15:19:49.086] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-24 15:19:49.192] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-24 15:19:49.194] [settingssync] [info] Sync done. Took 1875ms
[2022-02-24 15:19:49.196] [settingssync] [info] Auto Sync: Suspended until auth token is available.
[2022-02-24 15:19:49.196] [settingssync] [info] Auto Sync: Stopped
[2022-02-24 15:19:49.217] [settingssync] [info] Auto Sync: Started
[2022-02-24 15:19:49.217] [settingssync] [info] Auto Sync: Triggered by Interval
[2022-02-24 15:19:49.295] [settingssync] [info] Settings: No changes found during synchronizing settings.
[2022-02-24 15:19:49.375] [settingssync] [info] Keybindings: No changes found during synchronizing keybindings.
[2022-02-24 15:19:49.379] [settingssync] [info] Snippets: No changes found during synchronizing snippets.
[2022-02-24 15:19:49.390] [settingssync] [info] Tasks: No changes found during synchronizing tasks.
[2022-02-24 15:19:49.549] [settingssync] [info] GlobalState: Updated remote ui state
[2022-02-24 15:19:49.554] [settingssync] [info] GlobalState: Updated last synchronized ui state
[2022-02-24 15:19:49.641] [settingssync] [info] Extensions: No changes found during synchronizing extensions.
[2022-02-24 15:19:49.643] [settingssync] [info] Sync done. Took 364ms
[2022-02-24 15:19:50.493] [settingssync] [info] Auto Sync: Suspended until auth token is available.
[2022-02-24 15:19:50.493] [settingssync] [info] Auto Sync: Stopped

No other logs have anything at that time.

The problem may have been in some instance I closed. I will keep monitoring.

BladeMF commented 2 years ago

P.S. As Live Share had not lost connection to the account I was just able to select it within VS Code rather than go through the browser.

TylerLeonhardt commented 2 years ago

There's really nothing in the Microsoft Authentication output? That's shocking to me.

While opening and closing multiple instances the one that was open throughout lost the token

I'll try to repro when I get back to my Windows machine tomorrow.

BladeMF commented 2 years ago

Well, it was a lost association, rather than invalid access token, so it was probably even not the same issue.

As far as trying to reproduce it, I am really starting to think that this happens when the original token expires. I have been trying to reproduce it on purpose as well and have been unsuccessful. I wonder if there's a race condition between Live share and Settings sync...

BladeMF commented 2 years ago

@TylerLeonhardt , still nothing. The release version still loses association. I wonder whether it has been fixed my accident or there is something else going on that "hides" the problem?

BladeMF commented 2 years ago

@TylerLeonhardt , I had been using the Insiders ever since we talked and everything with the settings sync was fine. Then a couple of days ago I had something in the lines of "Settings Sync was suspended because of multiple authentication failures", which then went away, but then yesterday and today every time I start VS Code Settings Sync needs sign in. The log says:

[2022-07-08 08:14:50.883] [settingssync] [info] Using settings sync service https://vscode-sync-insiders.trafficmanager.net/
[2022-07-08 08:14:50.883] [settingssync] [info] Auto Sync is enabled.
[2022-07-08 08:14:50.883] [settingssync] [info] Auto Sync: Suspended until auth token is available.

When I click to sign in have this:

image

So I am in fact logged in.

BladeMF commented 2 years ago

Version:

Version: 1.69.0-insider (user setup)
Commit: 92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9
Date: 2022-07-05T18:34:10.764Z
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Windows_NT x64 10.0.22000
TylerLeonhardt commented 2 years ago

Can you provide the contents of the Microsoft Authentication output pane: image

And also anything that shows up in Dev Tools:

BladeMF commented 2 years ago
[Info  - 14:36:29.546] Reading sessions from secret storage...
[Error  - 14:36:31.811] Error: Not enough memory resources are available to process this command.

[Info  - 14:36:31.812] Got 1 stored sessions
[Trace  - 14:36:31.812] Read the following stored session with scopes: 9bd5ab7f-4031-4045-ace9-6bebbad202f6/all email offline_access openid profile
[Info  - 14:36:31.812] Refreshing token for scopes: 9bd5ab7f-4031-4045-ace9-6bebbad202f6/all email offline_access openid profile
[Info  - 14:36:32.995] Setting token for scopes: 9bd5ab7f-4031-4045-ace9-6bebbad202f6/all email offline_access openid profile
[Info  - 14:36:32.996] Token refresh success for scopes: 9bd5ab7f-4031-4045-ace9-6bebbad202f6/all email offline_access openid profile
[Info  - 14:36:32.997] Getting sessions for the following scopes: email offline_access openid profile
[Trace  - 14:36:32.997] No session found with idtoken scopes... Using fallback scope list of: email offline_access openid profile
[Info  - 14:36:32.997] Refreshing token for scopes: email offline_access openid profile
[Info  - 14:36:33.516] Setting token for scopes: email offline_access openid profile
[Info  - 14:36:33.516] Token refresh success for scopes: email offline_access openid profile
[Info  - 14:36:33.516] Got 1 sessions for scopes: email offline_access openid profile
[Info  - 14:36:33.516] Token available from cache (for scopes email offline_access openid profile), expires in 4713000 milliseconds
[Error  - 14:36:34.127] Error: Not enough memory resources are available to process this command.

[Info  - 14:36:34.620] Getting sessions for all scopes...
[Info  - 14:36:34.620] Got 2 sessions for all scopes...

At the same time:

image
TylerLeonhardt commented 2 years ago

That appears to be https://github.com/microsoft/vscode/issues/130893 ... makes me wonder if you've been hitting that the entire time...

BladeMF commented 2 years ago

Is it possible that that "keychain" file has become corrupted during these "suspended because of multiple authentication errors" error and that is why it is out of resources? can I reset that file?

TylerLeonhardt commented 2 years ago

maybe... this is tough for me because VS Code uses the abstraction layer, keytar... so this is getting into the nitty gritty of how that works.

BladeMF commented 2 years ago

I saw your post in the other thread. I will try when I can.

TylerLeonhardt commented 2 years ago

I'll close this issue so that we can focus chat in the other one. If you see any other errors. Don't hesitate to reach out here or in another issue of course!

TylerLeonhardt commented 2 years ago

/duplicate #130893

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!