qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.44k stars 576 forks source link

[Bug] 签到失败问题,以及重新点击无法再获取cookie #553

Open qththq opened 1 month ago

qththq commented 1 month ago

Verify steps

QD Version

20240210

Bug on OS

Linux

Bug on Platform

Docker/Linux 64位

To Reproduce

创建的新任务过段时间会自动失败

Describe the Bug

创建的新任务过段时间会自动失败,无法通过重新获取cookie来启动,无法执行。 好久没更新了,是不是有bug?

QD config

No response

QD log

两个失败的任务日志
Failed at 1/12 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 403: Forbidden,
Request URL: https://www.nodeseek.com/

Failed at 10/15 request,
Fail assert: {"re": "clockin clockin is duplicate", "from": "content"} from success_asserts,
Response Error : HTTP 400: Bad Request,
Request URL: https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn

v2也会中断,但是可以重新启动
Failed at 2/6 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 302: Found,
Request URL: https://www.v2ex.com/mission/daily

Expected behavior

正常执行不中断

Screenshots

No response

a76yyyy commented 1 month ago

显然这不是框架本身的问题,提示的失败原因都是模板 cookie 等过期了

qththq commented 1 month ago

cookie过期时间都是服务器决定的吗?另外我使用插件无法重新获取cookie怎么办?

iwakaka commented 2 weeks ago

cookie过期时间都是服务器决定的吗?另外我使用插件无法重新获取cookie怎么办?

现在浏览器限制多了,插件要设置域名或IP 才能拿到别的域名的cookie

crossgg commented 5 days ago

直接用F12获取cookie最简单