kindle-highlights icon indicating copy to clipboard operation
kindle-highlights copied to clipboard

Is the gem outdated?

Open vipulchhajer opened this issue 1 month ago • 0 comments

Hi @speric Is the gem outdated? I'm running into this error when I try to initialize the client and print a list of books. Do you have any pointers?

> /home/runner/RubyKindle/.local/share/gem/ruby/3.2.0/gems/kindle-highlights-2.0.1/lib/kindle_highlights/client.rb:88:in `login_via_mechanize': undefined method `email=' for nil:NilClass (NoMethodError)
> 
>       signin_form.email = email_address
>                  ^^^^^^^^
>     from /home/runner/RubyKindle/.local/share/gem/ruby/3.2.0/gems/kindle-highlights-2.0.1/lib/kindle_highlights/client.rb:65:in `conditionally_sign_in_to_amazon'
>     from /home/runner/RubyKindle/.local/share/gem/ruby/3.2.0/gems/kindle-highlights-2.0.1/lib/kindle_highlights/client.rb:54:in `load_books_from_kindle_account'
>     from /home/runner/RubyKindle/.local/share/gem/ruby/3.2.0/gems/kindle-highlights-2.0.1/lib/kindle_highlights/client.rb:22:in `books'
>     from main.rb:19:in `<main>'

Here's the code I'm running. I've removed my actual email and password in this post.

client = KindleHighlights::Client.new(
  email_address: "[email protected]",
  password: "password"
)

puts client.books

vipulchhajer avatar May 09 '24 01:05 vipulchhajer