QIN2DIM / epic-awesome-gamer

🍷 Gracefully claim weekly free games and monthly content from Epic Store.
https://echosec.notion.site/Epic-7c74f1e29117420dbac5551e4b031f82?pvs=4
GNU General Public License v3.0
886 stars 364 forks source link

Failed to flush token #216

Closed magisk317 closed 10 months ago

magisk317 commented 10 months ago

已参考issue:#214, /browser_context/ 文件夹删掉然后重开报下边的错:

2023-10-13 16:41:04 | INFO    | __main__:from_epic:40 | run - {'stage': 'Initialization EpicPlayer'}
2023-10-13 16:41:09 | INFO    | __main__:claim_epic_games:86 | Try to flush cookie - {'task': 'claim_epic_games'}
2023-10-13 16:41:13 | INFO    | services.agents.epic_games:_login:95 | login - {'url': 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=https://store.epicgames.com/en-US/free-games'}
2023-10-13 16:41:13 | INFO    | services.agents.epic_games:_login:97 | login-with-epic - {'url': 'https://www.epicgames.com/id/login/epic?lang=en-US&redirect_uri=https%3A%2F%2Fstore.epicgames.com%2Fen-US%2Ffree-games'}
2023-10-13 16:41:18 | DEBUG    | services.agents.epic_games:_login:109 | claim_weekly_games - {'action': 'handle challenge'}
2023-10-13 16:41:18 | DEBUG    | hcaptcha_challenger.agents.playwright.control:_match_solution:343 | match model - {'resnet': 'boat2310.onnx', 'prompt': 'Please click each image containing a bοаt'}
2023-10-13 16:41:26 | DEBUG    | services.agents.epic_games:_login:112 | handle challenge - {'result': 'success'}
2023-10-13 16:41:59 | INFO    | services.agents.epic_games:_login:95 | login - {'url': 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=https://store.epicgames.com/en-US/free-games'}
2023-10-13 16:42:00 | INFO    | services.agents.epic_games:_login:97 | login-with-epic - {'url': 'https://www.epicgames.com/id/login/epic?lang=en-US&redirect_uri=https%3A%2F%2Fstore.epicgames.com%2Fen-US%2Ffree-games'}
2023-10-13 16:42:04 | DEBUG    | services.agents.epic_games:_login:109 | claim_weekly_games - {'action': 'handle challenge'}
2023-10-13 16:42:05 | DEBUG    | hcaptcha_challenger.agents.playwright.control:_match_solution:343 | match model - {'resnet': 'boat2310.onnx', 'prompt': 'Please click each image containing a bοаt'}
2023-10-13 16:42:11 | DEBUG    | services.agents.epic_games:_login:112 | handle challenge - {'result': 'success'}
2023-10-13 16:42:45 | INFO    | services.agents.epic_games:_login:95 | login - {'url': 'https://www.epicgames.com/id/login?lang=en-US&noHostRedirect=true&redirectUrl=https://store.epicgames.com/en-US/free-games'}
2023-10-13 16:42:46 | INFO    | services.agents.epic_games:_login:97 | login-with-epic - {'url': 'https://www.epicgames.com/id/login/epic?lang=en-US&redirect_uri=https%3A%2F%2Fstore.epicgames.com%2Fen-US%2Ffree-games'}
2023-10-13 16:42:50 | DEBUG    | services.agents.epic_games:_login:109 | claim_weekly_games - {'action': 'handle challenge'}
2023-10-13 16:42:50 | DEBUG    | hcaptcha_challenger.agents.playwright.control:_match_solution:343 | match model - {'resnet': 'boat2310.onnx', 'prompt': 'Please click each image containing a bοat'}
2023-10-13 16:42:58 | DEBUG    | services.agents.epic_games:_login:112 | handle challenge - {'result': 'success'}
2023-10-13 16:43:28 | CRITICAL    | services.agents.epic_games:authorize:140 | Failed to flush token - {'agent': 'EpicGames'}
2023-10-13 16:43:28 | ERROR    | __main__:claim_epic_games:91 | Exit task - {'reason': 'Failed to flush token'}

user_data_dir_epic-games@317226700_record_fa1629b0-1072-4a6c-85a8-63aeb9c4fe99.webm

QIN2DIM commented 10 months ago

IP 问题,用 workflow 的话只能错峰了,改一下你的 timer 吧只能

magisk317 commented 10 months ago

IP 问题,用 workflow 的话只能错峰了,改一下你的 timer 吧只能

啊这,错峰需要错到啥时候啊,我昨晚12点前后,和刚刚三四点前后都不太行,改到凌晨四五点?

QIN2DIM commented 10 months ago

@magisk317 稍等,我看看能不能复现一下,如果我也挂了说明是IP问题

QIN2DIM commented 10 months ago

看来是IP问题(老生常谈的问题),或者说,IP参与了反机器人协议的决策流程。 这个问题去年也存在。

hCaptcha-challenger 这个模块我还在更新,这个CV行为和结果本身没问题,浏览器的指纹伪造应该也没问题,但 epic 不只看这个,IP 对 actions 来说确实是硬伤,我不知道这个项目目前有多少人在用,但我测试下来单IP五分钟内重复验证三次就关小黑屋了。

image

QIN2DIM commented 10 months ago

已解决,IP问题不是主要因素