Is the gem outdated?
vipulchhajer opened this issue · 0 comments
vipulchhajer commented
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.address@gmail.com",
password: "password"
)
puts client.books