Skip to content
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

解决办法:raw.hellogithub.com 502 异常 #130

Open
NewStorm-0 opened this issue Mar 16, 2022 · 2 comments
Open

解决办法:raw.hellogithub.com 502 异常 #130

NewStorm-0 opened this issue Mar 16, 2022 · 2 comments

Comments

@NewStorm-0
Copy link

大家有没有遇到类似的问题呢

@7a6163
Copy link

7a6163 commented Mar 22, 2022

偶爾會發生 502 Bad Gateway

<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.14.0 (Ubuntu)</center>
</body>
</html>

我的解決方式,最後在清除掉多餘的錯誤
0 */1 * * * /usr/bin/sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts && /usr/bin/sed -i "/<html>/, /<\/html>/d" /etc/hosts

@521xueweihan 521xueweihan changed the title 无法访问 https://raw.hellogithub.com/ 无法访问 raw.hellogithub.com 的解决办法 Apr 6, 2022
@521xueweihan 521xueweihan changed the title 无法访问 raw.hellogithub.com 的解决办法 解决办法:raw.hellogithub.com 502 异常 Apr 6, 2022
@521xueweihan 521xueweihan reopened this Apr 6, 2022
@taotieren
Copy link

我这边测试发现用 curl 会有类似的问题,后面改用 wget 后没有了
我在 systemd 中增加两个下载地址,也是防止主连接挂掉后无法更新,可以通过第二个连接获取更新。#212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants