Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取pt_key失败 #91

Open
huxc573 opened this issue Dec 18, 2024 · 5 comments
Open

获取pt_key失败 #91

huxc573 opened this issue Dec 18, 2024 · 5 comments

Comments

@huxc573
Copy link

huxc573 commented Dec 18, 2024

PixPin_2024-12-18_23-10-41

2024-12-18 23:05:23.648 | INFO | main:get_jd_pt_key:393 - 未配置代理
2024-12-18 23:05:29.352 | INFO | main:auto_move_slide:73 - 第1次尝试自动移动滑块中...
2024-12-18 23:05:32.367 | INFO | main:auto_move_slide:79 - 未找到小图,退出移动滑块
2024-12-18 23:05:33.496 | INFO | main:auto_shape:137 - 第1次自动识别形状中...
2024-12-18 23:05:36.509 | INFO | main:auto_shape:143 - 未找到形状图,退出识别状态
2024-12-18 23:05:37.525 | INFO | main:get_jd_pt_key:480 - 等待获取cookie...
Traceback (most recent call last):
File "D:\Dev\Workspaces\Git\AutoUpdateJdCookie\main.py", line 481, in get_jd_pt_key
await page.wait_for_selector('#msShortcutMenu', state='visible', timeout=120000)
File "D:\Dev\Python\Env\Python3.10.5\lib\site-packages\playwright\async_api_generated.py", line 8158, in wait_for_selector
await self._impl_obj.wait_for_selector(
File "D:\Dev\Python\Env\Python3.10.5\lib\site-packages\playwright_impl_page.py", line 426, in wait_for_selector
return await self._main_frame.wait_for_selector(**locals_to_params(locals()))
File "D:\Dev\Python\Env\Python3.10.5\lib\site-packages\playwright_impl_frame.py", line 323, in wait_for_selector
await self._channel.send("waitForSelector", locals_to_params(locals()))
File "D:\Dev\Python\Env\Python3.10.5\lib\site-packages\playwright_impl_connection.py", line 59, in send
return await self._connection.wrap_api_call(
File "D:\Dev\Python\Env\Python3.10.5\lib\site-packages\playwright_impl_connection.py", line 520, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.TimeoutError: Page.wait_for_selector: Timeout 120000ms exceeded.
Call log:
waiting for locator("#msShortcutMenu") to be visible

2024-12-18 23:07:37.970 | ERROR | main:main:585 - 获取pt_key失败

@realcsnake2023
Copy link

这也差不多是这样的问题,如果手机上看是没掉线的话,这个脚本也提示成功,但如果手机上看到是掉线的话,这个脚本也是失败

@hlw1995
Copy link

hlw1995 commented Jan 2, 2025

我也是这个问题。不知道怎么解决

@long1152153374
Copy link

我也这样好久了,不知道怎么回事
2025-01-05 10:29:44.034 | INFO | main:auto_move_slide:73 - 第1次尝试自动移动滑块中...

2025-01-05 10:29:47.040 | INFO | main:auto_move_slide:79 - 未找到小图,退出移动滑块

2025-01-05 10:29:48.621 | INFO | main:auto_shape:137 - 第1次自动识别形状中...

2025-01-05 10:29:51.623 | INFO | main:auto_shape:143 - 未找到形状图,退出识别状态

2025-01-05 10:29:52.641 | INFO | main:get_jd_pt_key:480 - 等待获取cookie...

@icepage
Copy link
Owner

icepage commented Jan 5, 2025

image

原因如上图,大多针对新号,近期JD风控变严,本项目目前无解,建议:
1、自建jd_h5st_server,避免号黑,参考 https://thin-hill-428.notion.site/h5-116aae1a9ef8808784abe56ecc7b1ef1
2、账号要实名。

@icepage
Copy link
Owner

icepage commented Jan 6, 2025

亲测了一个号,昨天风险,今天却正常了,我也迷了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants