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

[Bug]: http用head请求 有些服务器不会下响应,导致无法触发测速 #819

Closed
4 of 7 tasks
ymabc1234 opened this issue Jan 10, 2025 · 8 comments
Closed
4 of 7 tasks
Labels
bug Something isn't working incomplete Further information is needed

Comments

@ymabc1234
Copy link

Don't skip these steps | 不要跳过这些步骤

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field | 我明白,如果我“故意”删除或跳过任何强制性的*字段,我将被封锁
  • I have checked through the search that there are no similar issues that already exist | 我已经通过搜索仔细检查过没有存在已经创建的相似问题
  • I will not submit any issues that are not related to this project | 我不会提交任何与本项目无关的问题

Occurrence environment | 触发环境

  • Workflow | 工作流
  • GUI | 软件
  • Docker
  • Command line | 命令行

Bug description | 具体描述

经过调试发现 如下图这类服务器,如果直接用head请求,会返回400.但是直接用get 是可以正常返回的。
head请求无法通过check_m3u8_valid,导致测速时,只测速了主链接,后面的ts没有测速到

Error log | 报错日志

image
image

@ymabc1234 ymabc1234 added the bug Something isn't working label Jan 10, 2025
@Guovin
Copy link
Owner

Guovin commented Jan 13, 2025

目前该地址get也无法访问,请提供可用地址,尽量使用文本格式,最后一张图片根本看不清是什么内容。

@Guovin Guovin added the incomplete Further information is needed label Jan 13, 2025
@ymabc1234
Copy link
Author

感谢回复。
图片可以点开放大 请供参考。

http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8
此地址我本地可以访问及播放。
如有需要我收集一些符合此特征的服务器。

@Guovin
Copy link
Owner

Guovin commented Jan 13, 2025

感谢回复。 图片可以点开放大 请供参考。

http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8 此地址我本地可以访问及播放。 如有需要我收集一些符合此特征的服务器。

能否提供一个ipv4的地址?

@ymabc1234
Copy link
Author

感谢回复。 图片可以点开放大 请供参考。
http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8 此地址我本地可以访问及播放。 如有需要我收集一些符合此特征的服务器。

能否提供一个ipv4的地址?

http://223.105.252.60/PLTV/4/224/3221228581/index.m3u8?servicetype=1
http://223.105.252.59/PLTV/4/224/3221228499/index.m3u8?servicetype=1
http://223.105.252.61/PLTV/4/224/3221228502/index.m3u8?servicetype=1
我的环境只找到这几个 大部分是IPV6的

@Guovin
Copy link
Owner

Guovin commented Jan 15, 2025

感谢回复。 图片可以点开放大 请供参考。
http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8 此地址我本地可以访问及播放。 如有需要我收集一些符合此特征的服务器。

能否提供一个ipv4的地址?

http://223.105.252.60/PLTV/4/224/3221228581/index.m3u8?servicetype=1 http://223.105.252.59/PLTV/4/224/3221228499/index.m3u8?servicetype=1 http://223.105.252.61/PLTV/4/224/3221228502/index.m3u8?servicetype=1 我的环境只找到这几个 大部分是IPV6的

这些地址似乎都失效了。
解释一下,通过head是可以获取接口类型等信息,从而进行后续处理,一旦跳过这个步骤,进行get请求会出现其它无法预料的情况,例如#621

@ymabc1234
Copy link
Author

感谢回复。 图片可以点开放大 请供参考。
http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8 此地址我本地可以访问及播放。 如有需要我收集一些符合此特征的服务器。

能否提供一个ipv4的地址?

http://223.105.252.60/PLTV/4/224/3221228581/index.m3u8?servicetype=1 http://223.105.252.59/PLTV/4/224/3221228499/index.m3u8?servicetype=1 http://223.105.252.61/PLTV/4/224/3221228502/index.m3u8?servicetype=1 我的环境只找到这几个 大部分是IPV6的

这些地址似乎都失效了。 解释一下,通过head是可以获取接口类型等信息,从而进行后续处理,一旦跳过这个步骤,进行get请求会出现其它无法预料的情况,例如#621

那这些需要的信息 能否通过get请求获取到呢?
我本地是将get_m3u8_headers中的session.head 改成session.get。以前很多测速不通过的节点 可以继续测速了。

@Guovin
Copy link
Owner

Guovin commented Jan 15, 2025

感谢回复。 图片可以点开放大 请供参考。
http://[2409:8087:7008:20::8]:80/dbiptv.sn.chinamobile.com/PLTV/88888888/224/3221226231/index.m3u8 此地址我本地可以访问及播放。 如有需要我收集一些符合此特征的服务器。

能否提供一个ipv4的地址?

http://223.105.252.60/PLTV/4/224/3221228581/index.m3u8?servicetype=1 http://223.105.252.59/PLTV/4/224/3221228499/index.m3u8?servicetype=1 http://223.105.252.61/PLTV/4/224/3221228502/index.m3u8?servicetype=1 我的环境只找到这几个 大部分是IPV6的

这些地址似乎都失效了。 解释一下,通过head是可以获取接口类型等信息,从而进行后续处理,一旦跳过这个步骤,进行get请求会出现其它无法预料的情况,例如#621

那这些需要的信息 能否通过get请求获取到呢? 我本地是将get_m3u8_headers中的session.head 改成session.get。以前很多测速不通过的节点 可以继续测速了。

head可以获取完整的请求头信息,而get有可能会缺失部分关键的信息,导致无法测速,例如Location,部分接口真正需要测速的是重定向后的地址,而非首个地址。

@Guovin
Copy link
Owner

Guovin commented Jan 15, 2025

我觉得这部分无法使用head请求返回信息的,只是占极小部分,不太影响结果生成。一旦改成get会导致很多正常的接口无法进行后续流程。

@Guovin Guovin closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working incomplete Further information is needed
Projects
None yet
Development

No branches or pull requests

2 participants