Comments (8)
Please log your command that how to start the service?
from goproxy.
Please log your command that how to start the service?
./goproxy -listen=0.0.0.0:8080 -cacheDir= /go-cache -proxy=https://goproxy.io -exclude=review.xxx.cn
Is it possible the error is caused by the network failure to goproxy.io ?
from goproxy.
Emmm, goproxy.io
using Cloudflare, but this service is not stable if you are in China mainland.
from goproxy.
Emmm,
goproxy.io
using Cloudflare, but this service is not stable if you are in China mainland.
当我把启动参数中的https://goproxy.io
换成https://goproxy.cn
后,执行 go install的时候又会出现必现的报错
2023-07-04 10:02:36.896504 | devops-centos7-go | go: github.com/golangci/golangci-lint/cmd/[email protected]: github.com/golangci/[email protected]: verifying module: github.com/golangci/[email protected]: reading http://goproxy.myproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]: 410 Gone
2023-07-04 10:02:36.896711 | devops-centos7-go | server response: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]": dial tcp 104.26.4.191:443: i/o timeout
GOSUMDB是也需要对应的配置上吗?
把GOSUMDB 配置成 sum.golang.org
之后又出现下面的报错😭
2023-07-04 10:32:36.580088 | devops-centos7-go | go: downloading github.com/golangci/golangci-lint v1.47.3
2023-07-04 10:33:06.804057 | devops-centos7-go | go: github.com/golangci/golangci-lint/cmd/[email protected]: github.com/golangci/golangci-lint/cmd/[email protected]: invalid response from proxy "http://goproxy.xxxxxxx.io": invalid character 'o' in literal null (expecting 'u')
from goproxy.
server response: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]": dial tcp 104.26.4.191:443: i/o timeout
网不通吗? 能打开https://goproxy.io
吗
from goproxy.
网不通吗? 能打开
https://goproxy.io
吗
昨天在goproxy的服务容器里 ping goproxy.io
不通,我本地也ping不通,这个server是不是出问题了。
另外我把服务启动时的-proxy
的设置成了proxy.golang.com.cn
,然后拉取包就基本正常了。
但我不太理解的是 用goproxy.cn
为啥就会出现下面这个问题,查看服务日志也会出现了302的返回码。
........invalid response from proxy "http://goproxy.xxxxxxx.io": invalid character 'o' in literal null (expecting 'u')
from goproxy.
goproxy.io
是好的, 只是国内可能慢.- 如果参数加了
-proxy=https://goproxy.io
, 会把请求转到goproxy.io
, 网不通自然就有问题了.- 同样的出现的
410 Gone
, 因为goproxy
请求sumdb
超时给了2s
, 如果网不好, 很容易出现 - 可以尝试访问
sum.golang.org
看看
- 同样的出现的
- 对于换用
goproxy.cn
, 没能复现, 需要再详细描述下具体咋操作的
from goproxy.
goproxy 本地和服务器ping不通的时候,本地打开全局翻墙代理就可以ping通,网页也可以打开。
目前的解决方案还是需要配置国内可以稳定访问的地址。
如果国内没有可使用的稳定的地址,我们可以在服务器端安装open vpn
nslookup goproxy.io
Server: 114.114.114.114
Address: 114.114.114.114#53
Non-authoritative answer:
Name: goproxy.io
Address: 104.26.5.191
Name: goproxy.io
Address: 104.26.4.191
Name: goproxy.io
Address: 172.67.69.138
将goproxy.io 返回的address添加路由配置走vpn代理, 例如
ip r add 172.67.69.138 via 10.6.0.1
from goproxy.
Related Issues (20)
- [stream error: stream ID 11; INTERNAL_ERROR] HOT 2
- failed to download pdfcpu when use proxy.golang.com.cn HOT 4
- checksum检查不通过 HOT 2
- gosum.io responds with 'Not found' for most queries HOT 4
- connection reset by peer when accessing goproxy.io HOT 1
- gosum.io responds with 'Not found' for package `gopkg.in/ini.v1` HOT 1
- How do I know which open source protocol is used for open source components? HOT 2
- BUGS on https://proxy.golang.com.cn/docs/GOSUMDB-env.html about copy-button
- 域名没续费了?lookup proxy.golang.com.cn: no such host HOT 1
- The checksums generated by sum.golang.org and gosum.io are different HOT 1
- 502 Bad Gateway when running [email protected]
- Request to publish a versioned docker image HOT 4
- gosum.io source code HOT 2
- goproxy.io/sumdb proxy is not correct HOT 3
- Checksum verification behaviour mismatch with other proxies HOT 2
- 公共仓库版本,是否有不走公网服务器,仅本地cache代理功能?
- 建议修改一下首页https://goproxy.io/的使用示例 HOT 2
- 删除liyu36/kubectl-version-manager包 HOT 1
- 下载包报错:...invalid character 'o' in literal null (expecting 'u')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goproxy.