git - jekyll GitHub元数据错误

标签 git ubuntu metadata jekyll

我正在使用 this 创建博客。 当我在本地运行时,我遇到了这个错误。

GitHub 元数据:GET https://api.github.com/orgs/mones-cse: 404 - Not Found

第一次没有错误,但如果我更改任何内容,例如更改任何帖子中的文本,我第二次遇到此错误。

下面是完整的内容。

m1s@m1s-Aspire-4755:/media/m1s/062E0DE72E0DD11B/git/mones-blog$ bundle exec jekyll server
Configuration file: /media/m1s/062E0DE72E0DD11B/git/mones-blog/_config.yml
            Source: /media/m1s/062E0DE72E0DD11B/git/mones-blog
       Destination: /media/m1s/062E0DE72E0DD11B/git/mones-blog/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 16.848 seconds.
 Auto-regeneration: enabled for '/media/m1s/062E0DE72E0DD11B/git/mones-blog'
Configuration file: /media/m1s/062E0DE72E0DD11B/git/mones-blog/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
      Regenerating: 1 file(s) changed at 2016-10-23 14:30:10    GitHub Metadata: GET https://api.github.com/orgs/mones-cse: 404 - Not Found // See: https://developer.github.com/v3
...done in 22.723471133 seconds.

只是添加一些额外的信息

  • 我已经在我的环境变量中添加了 JEKYLL_GITHUB_TOKENSSL_CERT_FILE
  • 我的 GitHub 用户名 mones-cse
  • 我的 git 仓库名称 mones-blog

这是我的 _config.yml 文件

# Welcome to Jekyll!
#
# This config file is meant for settings that affect your entire site, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# `jekyll serve`. If you change this file, please restart the server process.

# Site Settings
locale                   : "en"
title                    : "Site Title"
title_separator          : "-"
name                     : "Monesul haque"
description              : "a test blog site"
url                      : #http://localhost:4000 # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
baseurl                  : # the subpath of your site, e.g. "/blog"
repository               : mones-cse/mones-blog # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes"
teaser                   : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png"
# breadcrumbs            : false # true, false (default)
words_per_minute         : 200
comments:
  provider               : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
  disqus:
    shortname            : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
  discourse:
    server               : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org
  facebook:
    # https://developers.facebook.com/docs/plugins/comments
    appid                :
    num_posts            : # 5 (default)
    colorscheme          : # "light" (default), "dark"
staticman:
  allowedFields          : ['name', 'email', 'url', 'message']
  branch                 : # "master", "gh-pages"
  commitMessage          : "New comment."
  filename               : comment-{@timestamp}
  format                 : "yml"
  moderation             : true
  path                   : "_data/comments/{options.slug}"
  requiredFields         : ['name', 'email', 'message']
  transforms:
    email                : "md5"
  generatedFields:
    date:
      type               : "date"
      options:
        format           : "iso8601" # "iso8601" (default), "timestamp-seconds", "timestamp-milliseconds"
atom_feed:
  path                   : # blank (default) uses feed.xml

# SEO Related
google_site_verification :
bing_site_verification   :
alexa_site_verification  :
yandex_site_verification :

# Social Sharing
twitter:
  username               :
facebook:
  username               :
  app_id                 :
  publisher              :
og_image                 : # Open Graph/Twitter default site image
# For specifying social profiles
# - https://developers.google.com/structured-data/customize/social-profiles
social:
  type                   : # Person or Organization (defaults to Person)
  name                   : # If the user or organization name differs from the site's name
  links: # An array of links to social media profiles

# Analytics
analytics:
  provider               : false # false (default), "google", "google-universal", "custom"
  google:
    tracking_id          :


# Site Author
author:
  name             : "Monesul haque"
  avatar           : "bio-photo.jpg"
  bio              : "knowledge is the power."
  location         : "Dhaka,Bangladesh"
  email            : "mones-cse@gmail.com"
  uri              :
  bitbucket        : 
  codepen          : 
  dribbble         :
  flickr           :  
  facebook         : 
  foursquare       :
  github           :
  google_plus      :
  keybase          :
  instagram        :
  lastfm           :
  linkedin         :
  pinterest        :
  soundcloud       :
  stackoverflow    : # "123456/username" (the last part of your profile url, e.g. http://stackoverflow.com/users/123456/username)
  steam            :
  tumblr           :
  twitter          : 
  vine             :
  weibo            :
  xing             :
  youtube          :


# Reading Files
include:
  - .htaccess
  - _pages
exclude:
  - "*.sublime-project"
  - "*.sublime-workspace"
  - vendor
  - .asset-cache
  - .bundle
  - .jekyll-assets-cache
  - .sass-cache
  - assets/js/plugins
  - assets/js/_main.js
  - assets/js/vendor
  - Capfile
  - CHANGELOG
  - config
  - Gemfile
  - Gruntfile.js
  - gulpfile.js
  - LICENSE
  - log
  - node_modules
  - package.json
  - Rakefile
  - README
  - tmp
keep_files:
  - .git
  - .svn
encoding: "utf-8"
markdown_ext: "markdown,mkdown,mkdn,mkd,md"


# Conversion
markdown: kramdown
highlighter: rouge
lsi: false
excerpt_separator: "\n\n"
incremental: false


# Markdown Processing
kramdown:
  input: GFM
  hard_wrap: false
  auto_ids: true
  footnote_nr: 1
  entity_output: as_char
  toc_levels: 1..6
  smart_quotes: lsquo,rsquo,ldquo,rdquo
  enable_coderay: false


# Sass/SCSS
sass:
  sass_dir: _sass
  style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style


# Outputting
permalink: /:categories/:title/
paginate: 5 # amount of posts to show
paginate_path: /page:num/
timezone: # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones


# Plugins
gems:
  - jekyll-paginate
  - jekyll-sitemap
  - jekyll-gist
  - jekyll-feed
  - jemoji
  - jekyll-github-metadata # if not work delete

# mimic GitHub Pages with --safe
whitelist:
  - jekyll-paginate
  - jekyll-sitemap
  - jekyll-gist
  - jekyll-feed
  - jemoji


# Archives
#  Type
#  - GitHub Pages compatible archive pages built with Liquid ~> type: liquid (default)
#  - Jekyll Archives plugin archive pages ~> type: jekyll-archives
#  Path (examples)
#  - Archive page should exist at path when using Liquid method or you can
#    expect broken links (especially with breadcrumbs enabled)
#  - <base_path>/tags/my-awesome-tag/index.html ~> path: /tags/
#  - <base_path/categories/my-awesome-category/index.html ~> path: /categories/
#  - <base_path/my-awesome-category/index.html ~> path: /
category_archive:
  type: liquid
  path: /categories/
tag_archive:
  type: liquid
  path: /tags/
# https://github.com/jekyll/jekyll-archives
# jekyll-archives:
#   enabled:
#     - categories
#     - tags
#   layouts:
#     category: archive-taxonomy
#     tag: archive-taxonomy
#   permalinks:
#     category: /categories/:name/
#     tag: /tags/:name/


# HTML Compression
# - http://jch.penibelst.de/
compress_html:
  clippings: all
  ignore:
    envs: development

我试过 bundle exec jekyll server --verbose 输出是

 GitHub Metadata: Initializing...
   GitHub Metadata: Calling @client.contributors("mones-cse/mones-blog")
   GitHub Metadata: Calling @client.repository("mones-cse/mones-blog")
   GitHub Metadata: Calling @client.organization("mones-cse")
   GitHub Metadata: GET https://api.github.com/orgs/mones-cse: 404 - Not Found // See: https://developer.github.com/v3
   GitHub Metadata: Calling @client.list_repos("mones-cse", {"type"=>"public"})
   GitHub Metadata: Calling @client.releases("mones-cse/mones-blog")

最佳答案

我遇到了完全相同的错误。 我认为这是 github-metadata 的一个错误。 我发现该错误不会影响我的服务器运行。 当我更新某些内容时,结果将显示在我的浏览器中。

我已经使用curl测试了Github的API,教程在这里: https://developer.github.com/guides/getting-started/

如果我将错误网址中的“orgs”替换为“user”,那么一切正常。 所以我认为生成错误的 url 是 github-metadata 的错误。

关于git - jekyll GitHub元数据错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40201709/

相关文章:

git - .gitignore 通配符不起作用? ("LIVE-* "模式与 "LIVE-vhost"文件名不匹配)

linux - 如何为 GIT 存储库创建受限 SSH 帐户?

c++ - 如何在同一位置的所有 Linux 发行版中找到包含 CPU 温度和风扇速度信息的文件?

python - 如何确保子进程不会在父进程终止时终止?

bash - 在 ubuntu 上设置 PYTHONPATH 失败,出现 'not a valid identifier'

windows - Git:请告诉我你是谁

javascript - 读取 Javascript 函数参数数据类型信息

javascript - 从脚本中访问 Greasemonkey 元数据?

hadoop - HDFS元数据占用太多空间

git - SourceTree 暂存错误