Extension marketplace fails with "Failed to fetch" error when using VS Code Marketplace URLs

Solved!

The issue was my default DNS server failing to resolve Microsoft domains.

Fix for macOS

  1. Open Apple menuSystem Settings
  2. Click Network in the sidebar
  3. Select your active network connection (Wi-Fi or Ethernet)
  4. Click Details
  5. Click DNS
  6. Remove existing DNS servers and add:
    • 8.8.8.8 (Google Public DNS)
    • 8.8.4.4 (Google secondary DNS)
  7. Click OK

After this change, visiting marketplace visualstudio .com in Chrome and using the VS Code Marketplace in Antigravity both work.