0

当我尝试使用 jekyll 的导入器来获取我的博客时,我收到以下错误:

ruby -rubygems -e 'require "jekyll/migrators/posterous"; Jekyll::Posterous.process("me@gmail.com", "mypass", "myblogid")'
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
/usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2632:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/migrators/posterous.rb:26:in `fetch'
    from /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/migrators/posterous.rb:32:in `process'
    from -e:1:in `<main>'

有任何想法吗?我尝试运行一个 http 调试代理来查看流量以了解发生了什么问题,但我不知道如何让 ruby​​ 使用代理。那里有什么建议吗?

4

1 回答 1

0

FWIW,最后我在这里使用了不同的迁移器:

https://github.com/pepijndevos/jekyll/blob/patch-1/lib/jekyll/migrators/posterous.rb

我只需要注释掉图像抓取代码。

于 2012-06-26T07:43:44.790 回答