天天看點

解決vscode中修改配置檔案後,raw.githubusercontent.com不能連接配接的問題

解決vscode中修改配置檔案後,raw.githubusercontent.com不能連接配接的問題

文章目錄

  • ​​解決vscode中修改配置檔案後,raw.githubusercontent.com不能連接配接的問題​​
  • ​​前言:​​
  • ​​參考文章:​​
  • ​​過程:​​
  • ​​結果​​

前言:

在vscode中修改了settings.json後,報出了raw.githubusercontent.com不能連接配接的錯誤。

Problems loading reference 'https://raw.githubusercontent.com/streetsidesoftware/cspell/cspell%404.0.53/cspell.schema.json#/definitions/OverrideSettings': Unable to load schema from 'https://raw.githubusercontent.com/streetsidesoftware/cspell/cspell%404.0.53/cspell.schema.json': Request vscode/content failed unexpectedly without providing any details."      

參考文章:

​​vscode 使用中遇到的問題

​​解決raw.githubusercontent.com無法連接配接問題 -

過程:

1vscode unknown Word cspell調整級别。把information切換為hint。

解決vscode中修改配置檔案後,raw.githubusercontent.com不能連接配接的問題

2查詢這個網址:https://site.ip138.com/raw.githubusercontent.com/

解決vscode中修改配置檔案後,raw.githubusercontent.com不能連接配接的問題

3在指令提示符中ping這些IP位址。選擇最長時間最短的。

我選了151.101.228.133

C:\Users\Administrator>cd c:\windows\system32

c:\Windows\System32>ping 151.101.108.133

正在 Ping 151.101.108.133 具有 32 位元組的資料:
請求逾時。
來自 151.101.108.133 的回複: 位元組=32 時間=131ms TTL=53
來自 151.101.108.133 的回複: 位元組=32 時間=132ms TTL=53
請求逾時。

151.101.108.133 的 Ping 統計資訊:
    資料包: 已發送 = 4,已接收 = 2,丢失 = 2 (50% 丢失),
往返行程的估計時間(以毫秒為機關):
    最短 = 131ms,最長 = 132ms,平均 = 131ms

c:\Windows\System32>ping 151.101.76.133

正在 Ping 151.101.76.133 具有 32 位元組的資料:
來自 151.101.76.133 的回複: 位元組=32 時間=120ms TTL=53
請求逾時。
來自 151.101.76.133 的回複: 位元組=32 時間=129ms TTL=53
來自 151.101.76.133 的回複: 位元組=32 時間=139ms TTL=53

151.101.76.133 的 Ping 統計資訊:
    資料包: 已發送 = 4,已接收 = 3,丢失 = 1 (25% 丢失),
往返行程的估計時間(以毫秒為機關):
    最短 = 120ms,最長 = 139ms,平均 = 129ms

c:\Windows\System32>ping 151.101.228.133

正在 Ping 151.101.228.133 具有 32 位元組的資料:
來自 151.101.228.133 的回複: 位元組=32 時間=75ms TTL=54
來自 151.101.228.133 的回複: 位元組=32 時間=70ms TTL=54
來自 151.101.228.133 的回複: 位元組=32 時間=70ms TTL=54
來自 151.101.228.133 的回複: 位元組=32 時間=80ms TTL=54

151.101.228.133 的 Ping 統計資訊:
    資料包: 已發送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估計時間(以毫秒為機關):
    最短 = 70ms,最長 = 80ms,平均 = 73ms

c:\Windows\System32>ping 151.101.0.133

正在 Ping 151.101.0.133 具有 32 位元組的資料:
來自 151.101.0.133 的回複: 位元組=32 時間=71ms TTL=54
請求逾時。
請求逾時。
來自 151.101.0.133 的回複: 位元組=32 時間=71ms TTL=54

151.101.0.133 的 Ping 統計資訊:
    資料包: 已發送 = 4,已接收 = 2,丢失 = 2 (50% 丢失),
往返行程的估計時間(以毫秒為機關):
    最短 = 71ms,最長 = 71ms,平均 = 71ms      

4配置 C:\Windows\System32\drivers\etc 本地hosts 檔案。

有可能不能儲存hosts檔案。

參考文章:​​hosts檔案在哪?什麼修改?另附Windows7/8/10 Mac/iPhone原版hosts檔案​​

找到hosts檔案右鍵選擇“屬性-安全"勾選"可寫(使用者)”.然後後把下面這段代碼複制進去。

#解決vscode中settings.json,報出了raw.githubusercontent.com不能連接配接的錯誤。
151.101.228.133 raw.githubusercontent.com      

5儲存重新開機vscode

結果

并沒有直接成功。

看命吧。第三步找的那幾個IP都不穩定。