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
初始化出现 Error: Not Found #18
Comments
我也遇到这个问题了 |
@opengit 你的repo咋填的呢?我怀疑我的填错了 |
好像是就写repo地址就可以,比如comments |
@s2117402 直接写 repo 地址并不可以 |
@ryancui- 说错了,是repo的名字。改成这样后至少不是Error: Not Found了 |
@ryancui- 然后我后来出的问题是按log in就转跳到个人主页的首页,我重新部署了下我的主页就解决了 |
@s2117402 重新部署主页是什么意思,具体怎么操作 |
我也遇到这个了,究竟咋解决啊 |
很大可能是 repo 名字填错了。以这个项目为例,owner 应该填 如果还是不对请贴配置代码。 |
@opengit 我的保证是reo的名字,但是还是出现了这样的错误,怎么可以冲洗初始化呢? |
@qkmaosjtu 我的是在每篇博文下面,就出现一个初始化按钮,点击一下就初始化了。以后每篇新的博文,都需要自己取初始化一下。 |
@qkmaosjtu 和 @opengit 一样,有个初始化按钮。但两星期前部署的时候,我也遇到这个问题,当时的参数(repo)都没有填错,最近试了一次突然又好了。。 |
我的已经按照教程搞了,GitHub的repo也是对的,为什么还会出问题,无法初始化 |
@wuhang2003 repo 直接填写名字就行了 |
似乎 repo 不能是 private 的。一開始我設成了 private 的,也收到了相同的錯誤信息。 |
请问博主,这个评论插件只能在Hexo上用,对吗?Wordpress不能用? |
repo 名稱改正確後可以 initialize,但是一按 initialize 就出現 Error: Validation Failed |
控制台会报这个错 |
@s2117402 老铁,我也这样了,怎么搞! |
我遇到这个问题,有无人知道怎样解决?
|
@anson2416 |
@anson2416 repo: anson2416.github.io这里直接写repo: anson2416试试 |
写成这样就好了hhsyy.github.io |
我的还是不行 |
咳,终于弄好了。我只想说,记得把这个仓库设置成public,否则当然是404了。 |
我通过在浏览器输入 |
gitment: repo这个参数很重要,你要在自己的github里面新建一个仓库,这个仓库是用来记录别人提出的issue,也就是回复内容的。例如imsun作者它要配置repo,就得输入gitment,因为这是它的仓库名。 owner这个不要相信上面说的填写id,而是你自己的用户名,https://github.com/owner能够打开你自己的仓库才对 |
我的not found 找到原因, function showGitment() {
$("#gitment_title").attr("style", "display:none");
$("#container").attr("style", "").addClass("gitment_container");
var gitment = new Gitment({
id: window.location.pathname,
theme: myTheme,
owner: '',
repo: '',
oauth: {
client_id: '21bb0ade****',
client_secret: '903e69fae75a**'
}
});
gitment.render('container');
} 解决办法: function showGitment() {
$("#gitment_title").attr("style", "display:none");
$("#container").attr("style", "").addClass("gitment_container");
var gitment = new Gitment({
id: window.location.pathname,
theme: myTheme,
owner: "owner", //github用户
repo: "repo", //repo
oauth: {
client_id: '{{ theme.gitment.client_id }}',
client_secret: '{{ theme.gitment.client_secret }}'
}
});
gitment.render('container'); 希望能帮到有同样问题的老铁 |
repo填写的应该是新建的用于存储评论的仓库名,比如说我新建的仓库名为gitment-comments,填入gitment-comments即可。我是在控制台里看AJAX时发现对Request URL:https://api.github.com/repos/hoooxz/…… 请求时返回了404,才意识到这个问题的~ |
我在本地调试时时有问题的,但是部署之后 hexo d ,GitHub验证一下就没有问题了。 |
repo要新建... |
终极答案 repo不是填你新建的oauth 是要新建一个repo用这个repo的issue去承载你的评论 |
我的一直出现问题:
运行 之前的办法都看了也试了,用不同的浏览器,注册了新的repo,重新注册oAuth,都不行, 求大神帮忙解决一下 |
|
还是没有解决,都想换插件了 |
我也是 |
|
坑 Error: Comments Not Initialized |
标题包含中英文时,不能有空格。 |
gitub_user 记得填你github的用户名,github_repo才是填仓库名。 |
11 |
初始化出现 Error: Not Found,无法评论
另外,火狐浏览器无法显示评论框
The text was updated successfully, but these errors were encountered: