OpenClash icon indicating copy to clipboard operation
OpenClash copied to clipboard

[Bug] 订阅信息获取失败

Open cjlhll opened this issue 11 months ago • 8 comments

Verify Steps

  • [X] Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • [x] Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • [X] Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • [X] Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • [X] Definite 这确实是 OpenClash 出现的问题
  • [X] Contributors 我有能力协助 OpenClash 开发并解决此问题
  • [X] Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.003

Bug on Environment

Lean

OpenWrt Version

24.057.40909

Bug on Platform

Linux-arm64

Describe the Bug

订阅信息获取失败,最近一直这样,windows版本的clash客户端都正常的。

To Reproduce

正常更新订阅,首页无法显示订阅信息。

OpenClash Log

见附件。

OpenClash Config

No response

Expected Behavior

首页能正常显示订阅信息。

Additional Context

No response

cjlhll avatar Mar 12 '24 01:03 cjlhll

log.txt QQ截图20240312090302

cjlhll avatar Mar 12 '24 01:03 cjlhll

订阅链接里是有response header里的流量信息的。但是就是不显示。

cjlhll avatar Mar 19 '24 00:03 cjlhll

怎么解决呀?

FreedomC avatar Mar 21 '24 09:03 FreedomC

同问

eeooeeooee avatar Apr 19 '24 03:04 eeooeeooee

同问

我这边发现是订阅转换服务地址不可达的问题. 修改下/etc/hosts 文件,把ip解析加进去就好了。

cat /etc/hosts

45.142.157.222 v.id9.cc 3.64.163.50 api.dier.io 104.218.235.103 sub.id9.cc

FreedomC avatar Apr 22 '24 01:04 FreedomC

受到楼上的启发,我也解决了。可能openclash是用curl命令而不是curl -L来获取header,倘若机场订阅链接出现了重定向,用curl命令测试订阅链接会报错301。可以看看机场配置文件是否有提供真正的订阅链接,用那个链接订阅或指定从该链接获取订阅信息则可正确显示流量。

eeooeeooee avatar Apr 22 '24 14:04 eeooeeooee

同问

我这边发现是订阅转换服务地址不可达的问题. 修改下/etc/hosts 文件,把ip解析加进去就好了。

cat /etc/hosts

45.142.157.222 v.id9.cc 3.64.163.50 api.dier.io 104.218.235.103 sub.id9.cc

Still not working for me anyway. Failed all the time.

Vtary avatar May 10 '24 09:05 Vtary

cat /etc/resolv.conf search lan nameserver 223.5.5.5 nameserver 223.6.6.6

修改了DNS就解决了 可以正常获取订阅信息 1715671796340

Vtary avatar May 14 '24 07:05 Vtary

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Jul 13 '24 08:07 github-actions[bot]