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

调用笔记生成方法 test_create_simple_note 报错 #147

Open
MannixZ opened this issue Feb 17, 2025 · 2 comments
Open

调用笔记生成方法 test_create_simple_note 报错 #147

MannixZ opened this issue Feb 17, 2025 · 2 comments

Comments

@MannixZ
Copy link

MannixZ commented Feb 17, 2025

报错原因:
playwright._impl._errors.Error: Page.evaluate: Execution context was destroyed, most likely because of a navigation

报错代码:
encrypt_params = context_page.evaluate("([url, data]) => window._webmsxyw(url, data)", [uri, data])

请问这个是什么原因呀?

@biek12
Copy link

biek12 commented Feb 19, 2025

我也遇到了这个问题,我重新编译了一下xhs-api的docker就好了,可以更新一下镜像,升级到
mcr.microsoft.com/playwright/python:v1.50.0-jammy

重新打包是为了更新stealth.min.js,小红书反爬更新了导致的

@biek12
Copy link

biek12 commented Mar 11, 2025

报错原因: playwright._impl._errors.Error: Page.evaluate: Execution context was destroyed, most likely because of a navigation

报错代码: encrypt_params = context_page.evaluate("([url, data]) => window._webmsxyw(url, data)", [uri, data])

请问这个是什么原因呀?

我对这个程序Debug了之后,我发现会自动跳转到验证码页面去,然后就导致找不到这个签名方法了,目前我是改了这个作者的py代码重置整个浏览器,然后让调用程序动态去获取a1和webId

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

2 participants