x-cold / yuque-hexo

同步语雀的文章到你的 Hexo 项目吧!
http://blog.lxstart.net/
MIT License
711 stars 83 forks source link

发现隔一段时间(一到两周)就部署失败,重置了yuque_token后正常 #130

Closed zaxtseng closed 1 year ago

zaxtseng commented 1 year ago
⚠️  Error: 请求数据失败: Response timeout for 10000ms, GET https://www.yuque.com/api/v2/repos/xx/xkb/docs -1 (connected: true, keepalive socket: false, socketHandledRequests: 1, socketHandledResponses: 0)
headers: {}
⚠️  Command Error, enable `DEBUG=common-bin` for detail
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hexo-site@0.0.0 start: `yuque-hexo clean && yuque-hexo sync && hexo clean && hexo generate`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the hexo-site@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-11-15T00_58_24_740Z-debug.log
LetTTGACO commented 1 year ago

这个是请求语雀API报错,也许是网络问题,也许是语雀API不稳定,可以尝试在yuqueConfig中增加timeout字段,把10秒的超时时间提高一点试一下

LetTTGACO commented 1 year ago

这个是请求语雀API报错,也许是网络问题,也许是语雀API不稳定,可以尝试在yuqueConfig中增加timeout字段,把10秒的超时时间提高一点试一下

文档里没有timeout字段,但是实际是可以设置这个字段的,他控制着请求语雀API时的超时时间

zaxtseng commented 1 year ago

ok,改成30分钟超时就可以了,3分钟都不行