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

卡在登录这步,一直超时 #4

Open
mobyoung opened this issue Oct 26, 2023 · 10 comments
Open

卡在登录这步,一直超时 #4

mobyoung opened this issue Oct 26, 2023 · 10 comments

Comments

@mobyoung
Copy link

windows环境执行node main.js 这步总是返回超时错误。
不知道是什么原因。
我这用户名是手机号码,是不是手机号码要加86之类的?
Login use user + password...
file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158
return new TimeoutError(errorMessage);
^

TimeoutError: Navigation timeout of 30000 ms exceeded
at LifecycleWatcher._LifecycleWatcher_createTimeoutPromise (file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js:158:12)
at async Frame.waitForNavigation (file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/Frame.js:252:23)
at async CDPPage.waitForNavigation (file:///C:/Windows/System32/yuque-exporter/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js:445:16)
at async file:///C:/Windows/System32/yuque-exporter/main.js:84:5

@renyunkang
Copy link
Owner

不用加86,应该是你的账号密码不对,检查检查

@mobyoung
Copy link
Author

set ACCESSURL是填写https://www.yuque.com/XXX吗?

@renyunkang
Copy link
Owner

写 xxx 就行

@mobyoung
Copy link
Author

账号密码确实是对的,accessurl也改了,还是不行,不知道是否和前些天语雀出问题有关系。

@rookieuncle
Copy link

账号密码对也下载不了了,我这可以下载下来两三个页面,剩下的都是超时,10s改到100s也不行,应该是被识别了

@renyunkang
Copy link
Owner

取消掉这一行的注释,重新运行看看日志,可能是文件中的特殊字符没有处理到

// console.log(`watch ${rootPath} ${eventType} ${filename}, want ${mdname}.md`)

             console.log(`watch ${rootPath} ${eventType} ${filename}, want ${mdname}.md`)

@rookieuncle
Copy link

取消掉这一行的注释,重新运行看看日志,可能是文件中的特殊字符没有处理到

// console.log(`watch ${rootPath} ${eventType} ${filename}, want ${mdname}.md`)

             console.log(`watch ${rootPath} ${eventType} ${filename}, want ${mdname}.md`)

sorry,昨晚上在windows上执行报错,今天在mac可以了

不过仍有两个点需要注意:

  1. excel不支持导出
  2. 注意语雀文档文件名,后边可能有空格,也不能导出,在本地是 xxx .md 而不是 xxx.md, 前者是不行的

@renyunkang
Copy link
Owner

sorry,昨晚上在windows上执行报错,今天在mac可以了

不过仍有两个点需要注意:

  1. excel不支持导出
  2. 注意语雀文档文件名,后边可能有空格,也不能导出,在本地是 xxx .md 而不是 xxx.md, 前者是不行的

感谢指出问题,另外说明一下:

  • 纯 excel 和 纯 思维导图是不支持导出,这个官方也没有直接导出为 mardown 的支持,需要自己手动导出为表格或者其他格式的文件

@mobyoung
Copy link
Author

mobyoung commented Nov 2, 2023

最后装了Ubuntu的虚拟机成功下载了。

@Scr1pt-kid
Copy link

powershell成功了

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

4 participants