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

[MSAL] Settings Sync logs out very quickly (few mins to few hours) #244939

Closed
manastalukdar opened this issue Mar 28, 2025 · 4 comments
Closed

[MSAL] Settings Sync logs out very quickly (few mins to few hours) #244939

manastalukdar opened this issue Mar 28, 2025 · 4 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@manastalukdar
Copy link

Version: 1.99.0-insider (system setup)
Commit: ff52a0d
Date: 2025-03-27T05:04:01.081Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. Log into settings sync.
  2. get prompted to log in few mins (to few hours) later. Have to log in multiple times a day.

This was reported previously under #229456.

@manastalukdar
Copy link
Author

I have temporarily the AuthN mode to classic, but that will soon be deprecated, so it is obviously not a solution.

@sandy081 sandy081 assigned TylerLeonhardt and unassigned sandy081 Mar 28, 2025
@TylerLeonhardt
Copy link
Member

Can you follow these steps so that we can get more information on what's going on?

Enable trace logging

  • Open the Command Palette (cmd/ctrl+shift+p)
  • Run the Developer: Set Log Level... command
  • To the right of Trace, click the double check mark button. ✔️ ✔️ (enables trace logging as the default)

Now wait for the issue to happen or trigger it...

Getting the logs

  • Open the Command Palette again (cmd/ctrl+shift+p)
  • Run the Output: Show Output Channels... command
  • Choose Microsoft Authentication
  • Copy and paste the contents of what opens in the panel in this issue (if the contents is too large, you may need to upload it as a file)

Reverting trace logging (optional)

When we're done here, to revert the log level back to the default:

  • Open the Command Palette
  • Run the Developer: Set Log Level... command
  • To the right of Info, click the double check mark button. ✔️ ✔️ (to set the default back to info)

@TylerLeonhardt TylerLeonhardt added the info-needed Issue requires more information from poster label Mar 28, 2025
@manastalukdar
Copy link
Author

manastalukdar commented Mar 29, 2025

msal.log

@TylerLeonhardt
Copy link
Member

Error's I've noticed:

2025-03-28 20:34:42.691 [error] [Sat, 29 Mar 2025 03:34:42 GMT] : [04f0c124-f2bc-4f59-8241-bf6df9866bbd] : @azure/msal-node-extensions@1.5.0 : Error - [MSAL:0002] ERROR Create:27 Created an error: tag_7cisv, StatusInternal::Unexpected, SubStatusInternal::0

2025-03-29 00:43:24.849 [error] [Sat, 29 Mar 2025 07:43:24 GMT] : [04f0c124-f2bc-4f59-8241-bf6df9866bbd] : @azure/msal-node-extensions@1.5.0 : Error - [MSAL:0003] ERROR ErrorInternalImpl:134 Created an error: 7q6cc, StatusInternal::ApiContractViolation, InternalEvent::None, Error Code 2156265475, Context '(pii)'

It looks like this issue is related to the Microsoft Identity authentication broker on your OS. This is not a component maintained by VS Code - It simply leverages it for authentication.

Please refer to the Feedback and support section of this post for assistance with these types of issues. This article also talks about what authentication brokers are and why they're important.

Closing this as out of scope of VS Code...

@TylerLeonhardt TylerLeonhardt closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants