renyunkang / yuque-exporter

A tool for exporting Yuque documents as markdown.
GNU General Public License v2.0
173 stars 27 forks source link

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

Open mobyoung opened 10 months ago

mobyoung commented 10 months ago

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 commented 10 months ago

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

mobyoung commented 10 months ago

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

renyunkang commented 10 months ago

写 xxx 就行

mobyoung commented 10 months ago

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

rookieuncle commented 10 months ago

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

renyunkang commented 10 months ago

取消掉这一行的注释,重新运行看看日志,可能是文件中的特殊字符没有处理到 https://github.com/renyunkang/yuque-exporter/blob/daf4ef82e769a5f8aa66142c6ba58e08d742e737/src/export.js#L109

             console.log(`watch ${rootPath} ${eventType} ${filename}, want ${mdname}.md`)
rookieuncle commented 10 months ago

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

https://github.com/renyunkang/yuque-exporter/blob/daf4ef82e769a5f8aa66142c6ba58e08d742e737/src/export.js#L109

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

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

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

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

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

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

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

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

mobyoung commented 10 months ago

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

Scr1pt-kid commented 10 months ago

powershell成功了