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

文章发布到知乎实际成功,但显示失败 #27

Closed
nettee opened this issue Sep 23, 2019 · 0 comments
Closed

文章发布到知乎实际成功,但显示失败 #27

nettee opened this issue Sep 23, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@nettee
Copy link

nettee commented Sep 23, 2019

发布后显示失败,但知乎专栏中实际上已有该文章。

错误信息:

[2019-09-23T14:39:54.008] [INFO] default - Publish task started
[PCR] Chromium revision: 686378
[PCR] Detected local chromium is already downloaded
[PCR] Chromium executablePath: /Users/william/.chromium-browser-snapshots/mac-686378/chrome-mac/Chromium.app/Contents/MacOS/Chromium
[PCR] Chromium version: HeadlessChrome/78.0.3882.0
[PCR] Chromium launchable: true
[PCR] Puppeteer version: 1.20.0
GET /articles/5d88620daabb861a5ceba3a0/tasks 200 13.971 ms - 7942
[2019-09-23T14:39:55.104] [INFO] default - navigating to https://zhuanlan.zhihu.com/write
GET /articles/5d88620daabb861a5ceba3a0/tasks 304 15.616 ms - -
Error: Protocol error (Runtime.evaluate): Session closed. Most likely the page has been closed.
    at CDPSession.send (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/Connection.js:180:29)
    at ExecutionContext._evaluateInternal (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/ExecutionContext.js:73:75)
    at ExecutionContext.evaluateHandle (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/ExecutionContext.js:57:17)
    at ExecutionContext.<anonymous> (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/helper.js:112:23)
    at _documentPromise.executionContext.then (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/DOMWorld.js:132:38)
  -- ASYNC --
    at Frame.<anonymous> (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/helper.js:111:15)
    at Page.$ (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/Page.js:318:29)
    at Page.<anonymous> (/Users/william/projects/artipub/node_modules/puppeteer-core/lib/helper.js:112:23)
    at ZhihuSpider.afterGoToEditor (/Users/william/projects/artipub/spiders/zhihu.js:30:36)
[2019-09-23T14:40:03.275] [INFO] default - Publish task ended

调试发现,浏览器最后跳转到了已发布的文章页面,并跳出弹窗“邀请你开通专栏”。

@tikazyq tikazyq added the bug Something isn't working label Sep 23, 2019
tikazyq added a commit that referenced this issue Sep 23, 2019
@tikazyq tikazyq closed this as completed Sep 23, 2019
tikazyq added a commit that referenced this issue Sep 23, 2019
rpennacchio3mj5y added a commit to rpennacchio3mj5y/TomZhang3224 that referenced this issue Apr 27, 2022
rpennacchio3mj5y added a commit to rpennacchio3mj5y/TomZhang3224 that referenced this issue Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants