Skip to content
This repository has been archived by the owner on Jun 25, 2018. It is now read-only.

issue running 'ebooks archive' a second time #24

Closed
tape- opened this issue Jul 20, 2014 · 5 comments
Closed

issue running 'ebooks archive' a second time #24

tape- opened this issue Jul 20, 2014 · 5 comments

Comments

@tape-
Copy link

tape- commented Jul 20, 2014

Running 'ebooks archive' to download my tweets worked fine the first time, but subsequent attempts to run it result in the following error:

Faraday::Builder is now Faraday::RackBuilder.
/usr/lib/ruby/1.9.1/json/common.rb:148:in encode': "\xC2" on US-ASCII (Encoding::InvalidByteSequenceError) from /usr/lib/ruby/1.9.1/json/common.rb:148:ininitialize'
from /usr/lib/ruby/1.9.1/json/common.rb:148:in new' from /usr/lib/ruby/1.9.1/json/common.rb:148:inparse'
from /var/lib/gems/1.9.1/gems/twitter_ebooks-2.2.6/lib/twitter_ebooks/archive.rb:50:in initialize' from /var/lib/gems/1.9.1/gems/twitter_ebooks-2.2.6/bin/ebooks:115:innew'
from /var/lib/gems/1.9.1/gems/twitter_ebooks-2.2.6/bin/ebooks:115:in archive' from /var/lib/gems/1.9.1/gems/twitter_ebooks-2.2.6/bin/ebooks:207:incommand'
from /var/lib/gems/1.9.1/gems/twitter_ebooks-2.2.6/bin/ebooks:217:in <top (required)>' from /usr/local/bin/ebooks:23:inload'
from /usr/local/bin/ebooks:23:in `

'

@negatendo
Copy link
Contributor

Don't know for sure but it seems like an encoding problem. Did you open or edit the archive file and accidentally? Also make sure that the following is at the top of any related scripts:

encoding: UTF-8

More info: http://zargony.com/2009/07/24/ruby-1-9-and-file-encodings

If you can somehow switch to Ruby 2.1+ that might help too.

@tape-
Copy link
Author

tape- commented Jul 21, 2014

I hadn't edited the archive file. the encoding line is in all the scripts that I saw referenced in the error.

now I'm having trouble getting twitter to authenticate with 'ebooks archive'. however, I was able to download my twitter archive from my twitter.com settings page and consume the tweets.csv file. I guess if all else fails I can just do that periodically.

@Aldarone
Copy link

I had the same issue. I solved it by setting an UTF-8 locale.

You can check your configuration by typing locale in a terminal.

@ghost ghost closed this as completed Dec 5, 2014
@ghost ghost reopened this Dec 5, 2014
@ghost
Copy link

ghost commented Dec 5, 2014

README now specifies that we require Ruby 2.0+ (we use some 2.0-specific features as well)

@ghost ghost closed this as completed Dec 5, 2014
@tape-
Copy link
Author

tape- commented Dec 9, 2014

I'm still having this exact problem with twitter_ebooks 3.0.4 and ruby 2.0

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants