lmk123 / oh-my-wechat

微信小助手的安装 / 更新工具。
2.8k stars 385 forks source link

安装失败 #78

Closed 0x5e closed 3 years ago

0x5e commented 3 years ago
» curl -o- -L https://omw.limingkai.cn/install.sh | bash -s
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   977  100   977    0     0   1923      0 --:--:-- --:--:-- --:--:--  1923
开始下载 Oh My WeChat...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13346  100 13346    0     0  69874      0 --:--:-- --:--:-- --:--:-- 69510
成功安装 Oh My Wechat!即将安装微信小助手……
[17:30:32] 当前 Oh My WeChat 版本为 v2.1.1
[17:30:32] 当前没有安装微信小助手
[17:30:32] 未安装微信小助手,也没有下载过安装包,所以即使使用了 -n 参数,仍需要检查并下载新版本
[17:30:32] 将会从 GitHub 仓库检查更新及下载安装包,
[17:30:32] 如果检查更新失败或下载速度很慢,建议使用 omw load 命令导入安装包,
[17:30:32] 详情请参阅文档 https://github.com/lmk123/oh-my-wechat#omw-load
[17:30:32] 正在查询新版本……
[17:30:34] 查询新版本时失败,请稍后重试
0x5e commented 3 years ago
» curl --retry 2 -I -s https://github.com/lmk123/oh-my-wechat/releases/latest
HTTP/2 302
date: Thu, 21 Jan 2021 09:31:40 GMT
content-type: text/html; charset=utf-8
server: GitHub.com
status: 302 Found
vary: X-PJAX, Accept-Encoding, Accept, X-Requested-With, Accept-Encoding
location: https://github.com/lmk123/oh-my-wechat/releases/tag/v2.1.1
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: no-referrer-when-downgrade
expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events wss://alive.github.com online.visualstudio.com/api/v1/locations; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/socket-worker-5029ae85.js gist.github.com/socket-worker-5029ae85.js
set-cookie: _gh_sess=GcPHX%2F4qtpkrSUVYa528A3vBM1FqIWcV6vir4%2Bkm%2Bf1CyxuhXOQ6ibA8O78QdrHVohKJCoPPhaSf7ye6sJHpoKG%2FGVJ67b3Wok9jgp8C6NWh5cxtUuQ3hstw7t3kDxek%2Bg%2FEofUOiLQDbHS0%2FetWO8WpvvHx8h5EXQ4WIUBr4qBIj%2BFFGncZ%2BBKXrSkYGNNDLiDyVpVYQLATyB4QJkaPu2T%2FYiiFo3ucxcjLM%2FS9co5zrjeNTuj2qDTxp%2F3BBowpJOvTN9DjdoHf5zrYh2kpgQ%3D%3D--21gI9OHAWw5GCAuN--Np6g5HGE8DbpoHUKC1tmOw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1859106147.1611221529; Path=/; Domain=github.com; Expires=Fri, 21 Jan 2022 09:32:09 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 21 Jan 2022 09:32:09 GMT; HttpOnly; Secure; SameSite=Lax
content-length: 124
x-github-request-id: D688:2F13:F8591:1155D5:60094A19
lmk123 commented 3 years ago

感谢修复!

合并 #73 的时候我确认过我这边已经没有这个问题了,但是还是有很多人反馈,对比了一下你的 curl --retry 2 -I -s https://github.com/lmk123/oh-my-wechat/releases/latest 才发现在我这里是首字母大写的 Location,所以 #73 修复了我的问题,但对于向你一样首字母小写的 location 就还是会有问题。