subconverter icon indicating copy to clipboard operation
subconverter copied to clipboard

[BUG] <title>同样一个订阅地址,用sub.id9.cc可以转换,用subconverter提示 No nodes were found!

Open zhychen1173 opened this issue 1 year ago • 11 comments

确认版本最新

  • [X] 我已经确认在最新Action编译的版本中复现

检索issue

  • [X] 我已经确认之前没有issue涉及此BUG

subconverter版本

0.7.2

转换过程

base64转clash

转换设置

http://localhost:25500/sub?target=clash&url=https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxx

复现步骤

1、运行subconverter.exe 2、浏览器中输入地址:http://localhost:25500/sub?target=clash&url=https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxx 。提示:No nodes were found! 3、浏览器打开订阅地址,可正常获得base64编码。 4、浏览器打开后端为 sub.id9.cc 生成的订阅地址,可正常获得节点。

期望结果

正常获得节点。

实际结果

未获得节点。

错误信息

2023/02/24 Fri 18:46:31.112239 [15092 24][DEBG] Accept connection from client 127.0.0.1:63610
2023/02/24 Fri 18:46:31.122595 [15092 24][VERB] handle_cmd:    GET handle_uri:    /sub?target=clash&url=https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxx
2023/02/24 Fri 18:46:31.152400 [15092 24][INFO] Reading preference settings...
2023/02/24 Fri 18:46:31.196089 [15092 24][VERB] Imported 0 item(s).
2023/02/24 Fri 18:46:31.208569 [15092 24][VERB] Trying to import items from snippets/emoji.toml
2023/02/24 Fri 18:46:31.286996 [15092 24][VERB] Imported 85 item(s).
2023/02/24 Fri 18:46:31.297220 [15092 24][VERB] Trying to import items from snippets/groups.toml
2023/02/24 Fri 18:46:31.326605 [15092 24][VERB] Imported 13 item(s).
2023/02/24 Fri 18:46:31.332727 [15092 24][VERB] Trying to import items from snippets/rulesets.toml
2023/02/24 Fri 18:46:31.336326 [15092 24][VERB] Imported 20 item(s).
2023/02/24 Fri 18:46:31.337369 [15092 24][VERB] Imported 0 item(s).
2023/02/24 Fri 18:46:31.341310 [15092 24][VERB] Imported 0 item(s).
2023/02/24 Fri 18:46:31.342207 [15092 24][INFO] Fetching node data from url 'https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxxxx'.
2023/02/24 Fri 18:46:31.379781 [15092 24][VERB] Received Link.
2023/02/24 Fri 18:46:31.395531 [15092 24][VERB] Downloading subscription data...
2023/02/24 Fri 18:46:31.412687 [15092 24][VERB] CACHE MISS: 'https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxxx', TTL timeout, creating new cache.
*   Trying 104.22.47.174:443...
* Connected to xn--4gq62f52gdss.com (104.22.47.174) port 443 (#0)
* schannel: disabled automatic use of client certificate
> GET /api/v1/client/subscribe?token=xxxxx HTTP/1.1
Host: xn--4gq62f52gdss.com
Accept: */*
Content-Type: application/json;charset='utf-8'
X-Client-IP: 127.0.0.1
Accept-Language: zh-CN,zh;q=0.9
Sec-Fetch-Dest: document
Sec-Fetch-User: ?1
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Upgrade-Insecure-Requests: 1
sec-ch-ua-platform: "Windows"
sec-ch-ua-mobile: ?0
sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"
Cache-Control: max-age=0
Connection: keep-alive
SubConverter-Request: 1
SubConverter-Version: v0.7.2

* Mark bundle as not supporting multiuse
< HTTP/1.1 503 Service Temporarily Unavailable
< Date: Fri, 24 Feb 2023 10:46:31 GMT
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: close
< Cross-Origin-Embedder-Policy: require-corp
< Cross-Origin-Opener-Policy: same-origin
< Cross-Origin-Resource-Policy: same-origin
< Permissions-Policy: accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(),fullscreen=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()
< Referrer-Policy: same-origin
< X-Frame-Options: SAMEORIGIN
< Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Expires: Thu, 01 Jan 1970 00:00:01 GMT
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
< X-Content-Type-Options: nosniff
< Server: cloudflare
< CF-RAY: 79e79e2e3cfc7c61-LAX
<
* Closing connection 0
* schannel: shutting down SSL/TLS connection with xn--4gq62f52gdss.com port 443
2023/02/24 Fri 18:46:32.450258 [15092 24][VERB] Fetch failed. No local cache available.
2023/02/24 Fri 18:46:32.458967 [15092 24][VERB] Cannot download subscription data.
2023/02/24 Fri 18:46:32.460522 [15092 24][WARN] The following link doesn't contain any valid node info: https://xn--4gq62f52gdss.com/api/v1/client/subscribe?token=xxxxxx

zhychen1173 avatar Feb 24 '23 10:02 zhychen1173

HTTP/1.1 503 Service Temporarily Unavailable 请求的时候503了, 没拿到base64字符串, 所以才没解析出来, 程序本身没问题.

ChaosTong avatar Feb 28 '23 07:02 ChaosTong

HTTP/1.1 503 Service Temporarily Unavailable 请求的时候503了, 没拿到base64字符串, 所以才没解析出来, 程序本身没问题.

但直接在浏览器打开订阅链接,是可以正常获得base64编码的,通过其他在线转换服务也可以正常获得节点。

zhychen1173 avatar Feb 28 '23 07:02 zhychen1173

你用他的中文域名请求看看

ChaosTong avatar Feb 28 '23 08:02 ChaosTong

image 我也遇到了相同的问题,浏览器和Postman获取没问题

jing332 avatar Mar 02 '23 02:03 jing332

https://github.com/tindy2013/subconverter/issues/573#issuecomment-1436012060 貌似是请求头的问题

jing332 avatar Mar 02 '23 02:03 jing332

我写个接口转了一道, 反正这么着能用

ChaosTong avatar Mar 02 '23 07:03 ChaosTong

我发现能直连更新的订阅链接才能用subconverter,需要走代理更新的订阅subconverter就不好使,即使本地浏览器代理能正常访问,subconverter的日志可以看到获取在线规则走了代理,但是获取订阅时没看见走代理的日志

Jingyu-Yan avatar Jun 12 '23 17:06 Jingyu-Yan

https://github.com/tindy2013/subconverter/blob/master/base/pref.example.toml#L74

tindy2013 avatar Jun 12 '23 17:06 tindy2013

https://github.com/tindy2013/subconverter/blob/master/base/pref.example.toml#L74

原来我一直修改错配置了,pref.ini文件中也有proxy_subscription这一项,现在我把两个地方都修改为 proxy_subscription=SYSTEM 这样,获取订阅就正常走代理了

Jingyu-Yan avatar Jun 13 '23 13:06 Jingyu-Yan

我也出现了这个问题,我是自己搭建的,有时候好有时候坏,同一个转换出来的链接,可能刚开始访问会 no node were found,过一会儿又好了

Faramitas avatar Sep 28 '23 08:09 Faramitas

https://github.com/tindy2013/subconverter/blob/master/base/pref.example.toml#L74

原来我一直修改错配置了,pref.ini文件中也有proxy_subscription这一项,现在我把两个地方都修改为 proxy_subscription=SYSTEM 这样,获取订阅就正常走代理了

确实是这个原因,subconverter更新订阅的时候默认不走代理,被墙的域名就不能直接更新了

szylmzs avatar Mar 14 '24 02:03 szylmzs