XHR Failed Error When Searching for Extensions in VSCode

Environment

  • CPU: M3 pro
  • OS: macOS Sonoma 14.5
  • Editor: Visual Studio Code

Issue

I am encountering an issue with Visual Studio Code when searching for extensions. The details of the issue are as follows:

  • When I search for extensions, an “XHR failed” error occurs.
  • When I select an extension, I can see the details for about a second before the “XHR failed” error appears.
  • I can download and install extensions using .vsix files locally without any issues.

Error Log

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>2024-05-28 23:19:07.368 [info] Started local extension host with pid 29434.
2024-05-28 23:19:09.953 [info] [perf] Render performance baseline is 11ms
2024-05-28 23:19:14.423 [error] Error: XHR failed
at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:20:21.585 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
2024-05-28 23:20:45.697 [error] Error: XHR failed
at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:20:47.979 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
2024-05-28 23:29:09.451 [error] Error: XHR failed
at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:29:09.631 [error] Error: XHR failed
at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:29:09.649 [error] XHR failed: Error: XHR failed
at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:30:35.335 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
</code>
<code>2024-05-28 23:19:07.368 [info] Started local extension host with pid 29434. 2024-05-28 23:19:09.953 [info] [perf] Render performance baseline is 11ms 2024-05-28 23:19:14.423 [error] Error: XHR failed at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011) 2024-05-28 23:20:21.585 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings 2024-05-28 23:20:45.697 [error] Error: XHR failed at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011) 2024-05-28 23:20:47.979 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings 2024-05-28 23:29:09.451 [error] Error: XHR failed at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011) 2024-05-28 23:29:09.631 [error] Error: XHR failed at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011) 2024-05-28 23:29:09.649 [error] XHR failed: Error: XHR failed at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011) 2024-05-28 23:30:35.335 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings </code>
2024-05-28 23:19:07.368 [info] Started local extension host with pid 29434.
2024-05-28 23:19:09.953 [info] [perf] Render performance baseline is 11ms
2024-05-28 23:19:14.423 [error] Error: XHR failed
    at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:20:21.585 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
2024-05-28 23:20:45.697 [error] Error: XHR failed
    at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:20:47.979 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings
2024-05-28 23:29:09.451 [error] Error: XHR failed
    at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:29:09.631 [error] Error: XHR failed
    at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:29:09.649 [error] XHR failed: Error: XHR failed
    at y.onerror (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:97:2011)
2024-05-28 23:30:35.335 [warning] Settings pattern "GitHub.copilot.manageExtension" doesn't match any settings

Steps I have tried:

  • Restarting the OS
  • Rebooting the router
  • Using iPhone tethering
  • Changing VSCode user settings for proxy:
    • Tried turning Http: Proxy Support off, on, fallback, and override
    • Unchecked Proxy Strict SSL
    • Left Http: Proxy field empty
  • Switching to Google’s DNS servers
  • Clearing all VSCode and brew caches and reinstalling VSCode using the following commands:
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>rm -rf /Applications/Visual Studio Code.app
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application Support/Code/
rm -fr ~/Library/Saved Application State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/
rm -fr ~/.vscode*
rm -rf /usr/local/bin/code
rm -rf Library/Caches/Homebrew/downloads/*VSCode*
brew uninstall --cask visual-studio-code
brew cleanup -s
</code>
<code>rm -rf /Applications/Visual Studio Code.app rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist rm -fr ~/Library/Caches/com.microsoft.VSCode rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/ rm -fr ~/Library/Application Support/Code/ rm -fr ~/Library/Saved Application State/com.microsoft.VSCode.savedState/ rm -fr ~/.vscode/ rm -fr ~/.vscode* rm -rf /usr/local/bin/code rm -rf Library/Caches/Homebrew/downloads/*VSCode* brew uninstall --cask visual-studio-code brew cleanup -s </code>
rm -rf /Applications/Visual Studio Code.app
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application Support/Code/
rm -fr ~/Library/Saved Application State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/
rm -fr ~/.vscode*
rm -rf /usr/local/bin/code
rm -rf Library/Caches/Homebrew/downloads/*VSCode*
brew uninstall --cask visual-studio-code
brew cleanup -s

Despite these efforts, the issue persists. I would appreciate any guidance or suggestions to resolve this issue.

Thank you!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật