version_manifest.json 返回的内容出现问题
-
zkitefly@zkitefly:~$ wget --no-proxy --no-cache --no-dns-cache --debug https://bmclapi2.bangbang93.com/mc/game/version_manifest.json DEBUG output created by Wget 1.20.1 on linux-gnu. Reading HSTS entries from /home/zkitefly/.wget-hsts URI encoding = “UTF-8” Converted file name 'version_manifest.json' (UTF-8) -> 'version_manifest.json' (UTF-8) --2023-08-11 11:59:02-- https://bmclapi2.bangbang93.com/mc/game/version_manifest.json 正在解析主机 bmclapi2.bangbang93.com (bmclapi2.bangbang93.com)... 183.239.30.125, 120.198.141.92, 120.198.141.91 正在连接 bmclapi2.bangbang93.com (bmclapi2.bangbang93.com)|183.239.30.125|:443... 已连接。 Created socket 3. Releasing 0x0000000000f3db40 (new refcount 0). Deleting unused 0x0000000000f3db40. Initiating SSL handshake. Handshake successful; connected socket 3 to SSL handle 0x0000000000f3dc40 certificate: subject: CN=*.bangbang93.com issuer: CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB X509 certificate successfully verified and matches host bmclapi2.bangbang93.com ---request begin--- GET /mc/game/version_manifest.json HTTP/1.1 Cache-Control: no-cache Pragma: no-cache User-Agent: Wget/1.20.1 (linux-gnu) Accept: */* Accept-Encoding: identity Host: bmclapi2.bangbang93.com Connection: Keep-Alive ---request end--- 已发出 HTTP 请求,正在等待回应... ---response begin--- HTTP/1.1 200 OK Date: Fri, 11 Aug 2023 03:59:03 GMT Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked Connection: keep-alive Server: openresty/1.21.4.1 x-req-node: openbmclapi Vary: Origin cause: json-file x-bmclapi-hash: a38cbf466aef9a4472ff77e1c740816830212f27 Cache-Control: public, max-age=600 Last-Modified: Thu, 10 Aug 2023 18:00:04 GMT ETag: W/"26ce2-189e09b0c4b" Content-Encoding: gzip X-Ser: BC215_dx-lt-yd-anhui-huainan-6-cache-6, BC124_yd-guangdong-zhaoqing-5-cache-9 ---response end--- 200 OK Registered socket 3 for persistent reuse. URI content encoding = “UTF-8” 长度:未指定 [application/json] 正在保存至: “version_manifest.json” version_manifest.json [ <=> ] 33.28K --.-KB/s 用时 0.008s 2023-08-11 11:59:04 (4.19 MB/s) - “version_manifest.json” 已保存 [34079] zkitefly@zkitefly:~$
以上是我使用 wget 获取 version_manifest.json,发现获取的数据竟然是不可读的乱码???
该文件的SHA1:
6d99a82515f015ca45a3c65f097c06ed94490640
这导致了 HMCL 的列表加载不出来等问题,希望能排查修复
注:本人住在广东地区,使用 MCBBS 源和官方源就没有这个奇怪的问题,以下是他们俩的信息:
↑官方源的 SHA1:
a38cbf466aef9a4472ff77e1c740816830212f27
↑MCBBS 源的 SHA1:
9adbbee5c48b51b233b7f2d27d1507024ee1f9b4
zkitefly@zkitefly:~$ wget --no-proxy --no-cache --no-dns-cache --debug http://launchermeta.mojang.com/mc/game/version_manifest.json DEBUG output created by Wget 1.20.1 on linux-gnu. Reading HSTS entries from /home/zkitefly/.wget-hsts URI encoding = “UTF-8” Converted file name 'version_manifest.json' (UTF-8) -> 'version_manifest.json' (UTF-8) --2023-08-11 12:03:08-- http://launchermeta.mojang.com/mc/game/version_manifest.json 正在解析主机 launchermeta.mojang.com (launchermeta.mojang.com)... 13.107.213.73, 13.107.246.73, 2620:1ec:bdf::73, ... 正在连接 launchermeta.mojang.com (launchermeta.mojang.com)|13.107.213.73|:80... 已连接。 Created socket 3. Releasing 0x0000000001e94340 (new refcount 0). Deleting unused 0x0000000001e94340. ---request begin--- GET /mc/game/version_manifest.json HTTP/1.1 Cache-Control: no-cache Pragma: no-cache User-Agent: Wget/1.20.1 (linux-gnu) Accept: */* Accept-Encoding: identity Host: launchermeta.mojang.com Connection: Keep-Alive ---request end--- 已发出 HTTP 请求,正在等待回应... ---response begin--- HTTP/1.1 200 OK Cache-Control: public, max-age=120 Content-Length: 158946 Content-Type: application/json Content-MD5: TVwqws+Fb98AAF7KA20+oA== Last-Modified: Wed, 09 Aug 2023 14:26:51 GMT ETag: 0x8DB98E4AC1B2AE2 X-Cache: TCP_MISS x-ms-request-id: d82d6206-001e-000e-4b08-cca28e000000 x-ms-version: 2009-09-19 x-ms-lease-status: unlocked x-ms-blob-type: BlockBlob Access-Control-Allow-Origin: * X-Azure-Ref: 0/LLVZAAAAACoEdAsWXgzSK03o78M74NkVFlPMDFFREdFMjQwOQAyYWJmMmU2Ni1iZGVhLTQ1Y2MtOWEwMy02NGEzYmZjNDcyM2Y= Date: Fri, 11 Aug 2023 04:03:08 GMT ---response end--- 200 OK Registered socket 3 for persistent reuse. 长度:158946 (155K) [application/json] 正在保存至: “version_manifest.json” version_manifest.json 100%[========================================>] 155.22K 728KB/s 用时 0.2s 2023-08-11 12:03:09 (728 KB/s) - 已保存 “version_manifest.json” [158946/158946]) zkitefly@zkitefly:~$
zkitefly@zkitefly:~$ wget --no-proxy --no-cache --no-dns-cache --debug https://download.mcbbs.net/mc/game/version_manifest.json DEBUG output created by Wget 1.20.1 on linux-gnu. Reading HSTS entries from /home/zkitefly/.wget-hsts URI encoding = “UTF-8” Converted file name 'version_manifest.json' (UTF-8) -> 'version_manifest.json' (UTF-8) --2023-08-11 12:05:20-- https://download.mcbbs.net/mc/game/version_manifest.json 正在解析主机 download.mcbbs.net (download.mcbbs.net)... 183.237.146.118, 120.233.81.185, 183.237.146.143 正在连接 download.mcbbs.net (download.mcbbs.net)|183.237.146.118|:443... 已连接。 Created socket 3. Releasing 0x000000000202abb0 (new refcount 0). Deleting unused 0x000000000202abb0. Initiating SSL handshake. Handshake successful; connected socket 3 to SSL handle 0x000000000202acb0 certificate: subject: CN=*.mcbbs.net issuer: CN=GlobalSign GCC R3 DV TLS CA 2020,O=GlobalSign nv-sa,C=BE X509 certificate successfully verified and matches host download.mcbbs.net ---request begin--- GET /mc/game/version_manifest.json HTTP/1.1 Cache-Control: no-cache Pragma: no-cache User-Agent: Wget/1.20.1 (linux-gnu) Accept: */* Accept-Encoding: identity Host: download.mcbbs.net Connection: Keep-Alive ---request end--- 已发出 HTTP 请求,正在等待回应... ---response begin--- HTTP/1.1 200 OK Last-Modified: Tue, 08 Aug 2023 18:00:02 GMT Etag: "64d282a2-26c01" Content-Type: application/json Content-Length: 158721 Accept-Ranges: bytes X-NWS-LOG-UUID: 5359038215044400758 Connection: keep-alive Server: Lego Server Date: Fri, 11 Aug 2023 04:05:20 GMT X-Cache-Lookup: Cache Hit ---response end--- 200 OK Registered socket 3 for persistent reuse. 长度:158721 (155K) [application/json] 正在保存至: “version_manifest.json” version_manifest.json 100%[========================================>] 155.00K --.-KB/s 用时 0.04s 2023-08-11 12:05:20 (3.65 MB/s) - 已保存 “version_manifest.json” [158721/158721]) zkitefly@zkitefly:~$
-
wget没能正确处理gzip压缩,换curl看看
-
OK,还是一样的(
甚至我换成手机也是一样的
BMCLAPI 源
zkitefly@zkitefly:~$ curl -O https://bmclapi2.bangbang93.com/mc/game/version_manifest.json % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 34079 0 34079 0 0 260k 0 --:--:-- --:--:-- --:--:-- 260k
仍然是乱码
↑SHA1:
6d99a82515f015ca45a3c65f097c06ed94490640
官方源
zkitefly@zkitefly:~$ curl -O http://launchermeta.mojang.com/mc/game/version_manifest.json % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 155k 0 155k 0 0 107k 0 --:--:-- 0:00:01 --:--:-- 107k
↑SHA1:
a38cbf466aef9a4472ff77e1c740816830212f27
MCBBS 源
zkitefly@zkitefly:~$ curl -O https://download.mcbbs.net/mc/game/version_manifest.json % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 155k 100 155k 0 0 1409k 0 --:--:-- --:--:-- --:--:-- 1409k
SHA1:
9adbbee5c48b51b233b7f2d27d1507024ee1f9b4