Lete114 / Hexo-SEO-AutoPush

Daily automatic submission of urls to baidu and Google bing | 每天自动提交url到百度和谷歌必应
https://blog.imlete.cn/article/hexo-seo-autopush.html
81 stars 14 forks source link

请问这是什么问题 #5

Closed Pride-lee closed 1 year ago

Pride-lee commented 1 year ago

大佬好,请问这是什么问题,好像没读取到token?忽略文件配置我也设置了 image image image

Lete114 commented 1 year ago

没遇到过这个问题,可能是你token写错了,导致百度服务器那边拒绝了请求,你检查一下token

Lete114 commented 1 year ago

或者你hexo g之后用命令行进入public目录下复制执行以下命令试试

curl -H 'Content-Type:text/plain' --data-binary @baidu.txt 'http://data.zz.baidu.com/urls?site=https://lhx.zzux.com&token=这里写你的token'
Lete114 commented 1 year ago

这是我电脑本地执行成功的截图,看来因该是百度的海外节点出现了问题导致无法请求百度的接口照成的,也有可能是百度直接禁止了github action的ip所以导致无法请求百度的接口 image

Lete114 commented 1 year ago

你点击一下你仓库的star,可以触发actions执行,5秒后再点击一次取消,这时你看看你的action是否执行成功

这时我今天执行失败的action: https://github.com/Lete114/lete114.github.io/actions/runs/2801352423

于是我点击star让action再次执行一遍后就成功了: https://github.com/Lete114/lete114.github.io/actions/runs/2801495791

Pride-lee commented 1 year ago

感谢回复啦,我action试了好多次都不行,错误代码都是56,不搞了,反正也不收录