-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错:error unmarshalling #21
Comments
俺也一样 |
1 similar comment
俺也一样 |
通过在 CF 上追踪日志,我知道了报错说的是什么了: 正常请求 而请求 至于为什么请求 |
下面是使用
下面是拉取
|
原因找到了,是下面代码起了作用(148 行):
解决办法是,打开「Workers 和 Pages」中的项目页面,点击「设置」-「变量」-「全局变量」删除添加的自定义 至于根本原因是什么,我没搞懂。 |
一样的问题,看了一下 148 行附近的代码,应该是这里 CF-Workers-docker.io/_worker.js Lines 132 to 146 in a38495f
在匹配伪装路径的时候, |
大致看了下 疑似是伪装nginx部分代码导致 访问https://dockerhubs.xyz/v2/library/redis/manifests/latest 获取manifests信息时会跳转到伪装界面,在 大概 148行的判断处 CF-Workers-docker.io/_worker.js Line 148 in a38495f
加上一个条件, && !pathname.startsWith('/v2/library/') 确保 /v2/library/ 这种路径不会被错误处理,可使用docker pull xxxx.com/library/redis 正常拉取redis,至于加上这个条件有啥影响目前还不清楚 |
我也是今天拉取registry:2的时候报错,跟踪错误发现也是上述部分不停地跳302,后面取消环境变量后就OK了。但是取消302的话网址就直接暴露到公网上了,从日志中可以看到很多全球IP在用我的域名访问dockerhub,感觉流量扛不住啊 |
拉取 Redis 镜像的时候会报错,百思不得解:
1.自建代理拉取其他镜像是正常的;
2.使用第三方代理 docker.m.daocloud.io 来拉取 redis 镜像也是正常的。
The text was updated successfully, but these errors were encountered: