Skip to content

Error when migrating from Posterous on Jekyll #464

Closed
Juev opened this Issue Jan 2, 2012 · 4 comments

4 participants

@Juev
Juev commented Jan 2, 2012

Tried to migrate from Posterous to Jekyll, as described in the wiki. But always the following error:

$ ruby -r '../jekyll/lib/jekyll/migrators/posterous.rb' -e 'Jekyll::Posterous.process("my_mail", "my_pass")'    
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:2101:in `error!': 410 "Gone" (Net::HTTPServerException)
    from ../jekyll/lib/jekyll/migrators/posterous.rb:26:in `fetch'
    from ../jekyll/lib/jekyll/migrators/posterous.rb:32:in `process'
    from -e:1

And the migration fails. Is it possible somehow to fix this?

@hindenbug

Same here, I am facing the same problem..

@nfm
nfm commented Jan 17, 2012

I just had this issue too.

@nfm
nfm commented Jan 17, 2012

Alright, so to get this to work you need to fetch your API token manually from here, after logging in as the user you want to fetch posts as: http://posterous.com/api

Then you can hard code it in lib/jekyll/migrators/posterous.rb, instead of trying to fetch it from the API with JSON.parse(self.fetch("/api/2/auth/token").body)['api_token'], which is no longer supported.

I will submit a pull request to fix this.

@mojombo
mojombo commented Jan 23, 2012

Fixed by #472.

@mojombo mojombo closed this Jan 23, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.