现象:
当执行 cargo build 时报类似错误:
warning: spurious network error (3 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 8899 after 2040 ms: Couldn't connect to server); class=Net (12) warning: spurious network error (2 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 8899 after 2031 ms: Couldn't connect to server); class=Net (12) warning: spurious network error (1 tries remaining): [7] Couldn't connect to server (Failed to connect to 127.0.0.1 port 8899 after 2041 ms: Couldn't connect to server); class=Net (12)
解决:
是因为git 代理问题,去掉git代理即可:
git config --global --unset http.proxy git config --global --unset https.proxy
标签:Couldn,0.1,server,Failed,connect,Net From: https://www.cnblogs.com/yuyk/p/18025232