qd-today / templates

基于开源新版 QD 框架站发布的公共har模板库,仅供示例
1.08k stars 294 forks source link

CarPT 评论区 #209

Open a76yyyy opened 2 years ago

a76yyyy commented 2 years ago

如无法使用,请@AemonCao

immoke commented 2 years ago

无论是使用官方库,还是您的库,都是报错

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

a76yyyy commented 2 years ago

无论是使用官方库,还是您的库,都是报错

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

403一般三种原因

  1. cookie不对或者请求参数不对
  2. ip被ban
  3. 请求被识别为非正常操作

@AemonCao

AemonCao commented 2 years ago

无论是使用官方库,还是您的库,都是报错

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

我这边使用是没有问题的,请检查一下 cookie 是否正确,需要的是首页请求的 cookie。

immoke commented 2 years ago

您好,我再次用首页cookie做测试,依然报错,但是报错信息变了。

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://carpt.net/attendance.php

nerowei commented 2 years ago

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

同样报错。

AemonCao commented 2 years ago

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

同样报错。

您好,我再次用首页cookie做测试,依然报错,但是报错信息变了。

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 302: Found, Request URL: https://carpt.net/attendance.php

已经修改了,提交了PR,如果着急可以自己下载Har文件

samcard1 commented 2 years ago

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

下载了Har文件后还是上面的错误。测试了三天了,还没有成功

AemonCao commented 2 years ago

Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

下载了Har文件后还是上面的错误。测试了三天了,还没有成功

我这里确实是成功的,如果还是不行,可能是CarPT启用了Cloudflare的原因,可以试试换个IP地址再请求试试,或者在配置中使用代理。

immoke commented 2 years ago

今天测试,这个问题还没有解决。 用签到框架的调试看了一下,应该是卡在cloudflare上了。因为服务器本身是没有过cloudflare检测,所以不能签到,请问这个能调整吗?

AemonCao commented 2 years ago

今天测试,这个问题还没有解决。 用签到框架的调试看了一下,应该是卡在cloudflare上了。因为服务器本身是没有过cloudflare检测,所以不能签到,请问这个能调整吗?

使用 https://github.com/qiandao-today/templates/blob/master/PT%E9%80%9A%E7%94%A8%E7%99%BB%E5%BD%95%E4%BF%9D%E5%8F%B7.har 这个请求更改一下请求URL即可。

ahhbfz commented 1 year ago

我是30日以后开始报错!这几天再也无法成功签到

JL066 commented 1 year ago

我的也是30日后开始报错,最后一次成功是11月29日

AemonCao commented 1 year ago

我是30日以后开始报错!这几天再也无法成功签到

我的也是30日后开始报错,最后一次成功是11月29日

应该是CarPT服务器的问题,现在已经可以成功请求了吧。

zzz1041912976 commented 1 year ago

failed at 1/2 request, , https://{{domain}}/torrents.php. 12.13日同样报错

fancyword commented 1 year ago

失效了

zx4357685 commented 1 year ago

失效了

blundyth commented 1 year ago

失效了,可能是Cloudflare原因

wishday commented 1 year ago

没法用了,估计是因为站点启用了Cloudflare?

日志:Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 403: Forbidden, Request URL: https://carpt.net/attendance.php

kai456789 commented 1 year ago

車站用了CF盾 無法用 麻煩修正一下 謝謝 @AemonCao

AemonCao commented 1 year ago

@blundyth @wishday @kai456789 可以使用通用的保号脚本修改后进行签到,如遇上CF盾可以手动签到一次。

CharlesLiu146 commented 2 months ago

@AemonCao 车站报错,昨天还行呢今天就不行了,而且不是报的403: Forbidden,是599:无法识别的内容编码类型 2024-09-04 13:43:14 日志:Failed at 1/2 request, Fail assert: {"re": "200", "from": "status"} from success_asserts, Response Error : HTTP 599: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings., Request URL: https://carpt.net/attendance.php