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

yuque-hexo sync 报错 Error: fail to fetch article list #114

Open
enjoyWeb opened this issue Jul 7, 2022 · 7 comments
Open

yuque-hexo sync 报错 Error: fail to fetch article list #114

enjoyWeb opened this issue Jul 7, 2022 · 7 comments

Comments

@enjoyWeb
Copy link

enjoyWeb commented Jul 7, 2022

image
yuque.json这个文件是自动生成的还是自己要建一个空的呀

@furacas
Copy link
Contributor

furacas commented Jul 25, 2022

image yuque.json这个文件是自动生成的还是自己要建一个空的呀

自己生成的

@furacas
Copy link
Contributor

furacas commented Jul 25, 2022

从报错的图来看,估计是认证方面出现了问题,请参考文档检查token相关的配置

@LetTTGACO
Copy link
Collaborator

问题解决了吗?

@enjoyWeb
Copy link
Author

问题解决了吗?

没有/(ㄒoㄒ)/~~

@k3lpi3b4nsh33
Copy link

k3lpi3b4nsh33 commented Nov 19, 2022

You should add the key "token" and the value which is your Yuque token
image

@LetTTGACO
Copy link
Collaborator

You should add the key "token" and the value which is your Yuque token image

这个token建议设置在环境变量中,虽然这样也能用,但还是不要在代码中写入敏感信息

可以使用dotenv-cli来设置环境变量,具体配置参考https://github.com/LetTTGACO/yuque-hexo-example

@roudoukou
Copy link

image
遇到过一个类似的问题, 在npm安装包的时候就会报个警告WARNING, 把package-lock.json删了再npm i生成package-lock.json
再次yuque-hexo sync就能运行了, 不知道啥原因, 可能是npm包影响了

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

5 participants