Finb / V2ex-Swift

An iOS client written in Swift for V2EX
MIT License
1.55k stars 223 forks source link

打开提示网络错误,无法正常使用 #78

Open alfchin opened 3 years ago

alfchin commented 3 years ago

客户端进入后直接提示网络错误,拿 QuanX 抓包后发现客户端访问返回的是 CloudFlare的 503 错误页面。 但是同个网络 Safari 可以正常打开页面,未触发 CF 页面。卸载重装 app 或者切换网络、重启手机等均尝试无效。另外一台 iOS 手机上的客户端已登录账号,未出现此问题。

alfchin commented 3 years ago

请求头:

GET /?tab=all HTTP/1.1 Host: www.v2ex.com Accept: / Cookie: __cfduid=d47a46e75d017cc0e287e254cebecf4f71613230074 User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4 Accept-Language: zh-Hans-US;q=1.0, en-US;q=0.9 Accept-Encoding: gzip;q=1.0, compress;q=0.5 Connection: keep-alive

响应头为:

HTTP/1.1 503 Service Temporarily Unavailable Date: Sat, 13 Feb 2021 15:41:44 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: close 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 cf-request-id: 083da72ac0000039e3d906f000000001 Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Vary: Accept-Encoding Strict-Transport-Security: max-age=31536000; includeSubDomains; preload Server: cloudflare CF-RAY: 620fa7bdfaaf39e3-SEA alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400

Finb commented 3 years ago

已修复,https://github.com/Finb/V2ex-Swift/commit/b7aa1f1d4abe80ba5e5426ee8ee68d3ee6d84b45 正在提交商店审核