win10環(huán)境,報錯完整內容如下
go get google.golang.org/grpc: module google.golang.org/grpc: Get https://proxy.golang.org/google.golang.org/grpc/@v/list: dial tcp [2404:6800:4012:3::2011]:443: connectex: A connection attempt failed because the connected party did no
t properly respond after a period of time, or established connection failed because connected host has failed to respond.
如下圖
?原因:
因為我們訪問的地址被防火墻給屏蔽了,你需要改成我們國內可用的代理地址
操作如下:
在cmd中執(zhí)行? ?go env -w GOPROXY=https://goproxy.cn
如下圖
?再次執(zhí)行 go get google.golang.org/grpc 命令即可
完整流程如下圖(修改goproxy后再次執(zhí)行就成功了)
文章來源:http://www.zghlxwxcb.cn/news/detail-512022.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-512022.html
到了這里,關于go get google.golang.org/grpc報錯的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!