-
Notifications
You must be signed in to change notification settings - Fork 129
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
Comments
这也差不多是这样的问题,如果手机上看是没掉线的话,这个脚本也提示成功,但如果手机上看到是掉线的话,这个脚本也是失败 |
我也是这个问题。不知道怎么解决 |
我也这样好久了,不知道怎么回事 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... |
原因如上图,大多针对新号,近期JD风控变严,本项目目前无解,建议: |
亲测了一个号,昨天风险,今天却正常了,我也迷了 |
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失败
The text was updated successfully, but these errors were encountered: