microsoft / vscode

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

[settingssync] [error] Error: XHR failed #135754

Closed sba923 closed 2 years ago

sba923 commented 2 years ago

Issue Type: Bug

On one of my Windows 10 machines, I cannot enable Settings Sync in VS Code.

I get:

[2021-10-25 09:30:46.982] [settingssync] [error] Error: XHR failed at XMLHttpRequest.b.onerror (vscode-file://vscode-app/c:/Users/steph/AppData/Local/Programs/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:21:24141) [2021-10-25 09:30:46.995] [settingssync] [info] Extensions: Stopped synchronizing extensions.

The same error occurs with VS Code Insiders (using the Stable sync service).

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

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)| |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.95GB (6.50GB free)| |Process Argv|--crash-reporter-id c7a72569-9678-4790-9b0f-45f156a20147| |Screen Reader|no| |VM|0%|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- vscode-m3u|af4|1.0.0 vscode-javascript-snippet-pack|aka|0.1.6 Bookmarks|ale|13.2.2 ng-template|Ang|12.2.2 vscode-color|ans|0.4.5 vscode-standardjs|che|1.4.1 npm-intellisense|chr|1.4.0 path-intellisense|chr|2.4.0 bracket-pair-colorizer|Coe|1.0.61 autoit|Dam|1.0.6 vscode-markdownlint|Dav|0.44.4 vscode-html-css|ecm|1.10.2 vscode-npm-script|eg2|0.3.23 prettier-vscode|esb|9.0.0 platformio|for|0.3.0 gc-excelviewer|Gra|3.0.44 todo-tree|Gru|0.0.214 live-html-previewer|hdg|0.3.0 beautify|Hoo|1.5.0 rest-client|hum|0.24.5 angular2-switcher|inf|0.3.4 reg|ion|1.0.3 eml|lei|0.4.0 rainbow-csv|mec|1.9.1 Angular-BeastCode|Mik|10.0.3 azure-pipelines|ms-|1.191.0 mssql|ms-|1.10.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-wsl|ms-|0.58.2 azure-account|ms-|0.9.9 cpptools|ms-|1.7.1 powershell|ms-|2021.10.1 vscode-typescript-tslint-plugin|ms-|1.3.3 angular2-inline|nat|0.0.17 printcode|nob|3.0.0 angular-console|nrw|17.12.1 indent-rainbow|ode|8.2.1 platformio-ide|pla|2.3.4 quicktype|qui|12.0.46 java|red|1.0.0 cmake|twx|0.0.17 lorem-ipsum|Tyr|1.3.0 vscodeintellicode|Vis|1.2.14 vscode-svg-previewer|vit|0.7.0 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.0 markdown-pdf|yza|1.4.4 markdown-all-in-one|yzh|3.4.0 html-css-class-completion|Zig|1.20.0
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 pythonvspyt639:30300192 pythontb:30283811 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscoreces:30384385 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwt:30382697 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt3:30385195 dockerwalkthru:30377721 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedc:30364665 pythonvspyt187:30373474 vsqsis300:30386381 vsaa593cf:30376535 vssld246cf:30386378 vscrecpromptt3:30387013 ```
large to send. Please paste.
sandy081 commented 2 years ago

Can you please provide the error in detail - you can get that by following these steps:

Get the errors from console tab and network tab

sba923 commented 2 years ago

Well... I hate to say, but when capturing this, Settings Sync worked...

vscode135754-202110251949.zip

What can've happened?

sandy081 commented 2 years ago

Not sure why it didn't work before (could be network issue or service is down), unless we have logs. Anyways since it is working now, I would close this. Please reopen it if you get the error again with the necessary logs