Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enter a valid email or mobile number error after running smoothly for a while. #11

Closed
cggaurav opened this issue Oct 19, 2016 · 13 comments · Fixed by #12
Closed

Enter a valid email or mobile number error after running smoothly for a while. #11

cggaurav opened this issue Oct 19, 2016 · 13 comments · Fixed by #12

Comments

@cggaurav
Copy link

rake aborted!
KindleHighlights::Client::AuthenticationError: Unable to sign in, received error: 'Enter a valid email or mobile number'
/Users/cggaurav/.rvm/gems/ruby-2.1.2/gems/kindle-highlights-1.0.1/lib/kindle_highlights/client.rb:55:in `conditionally_sign_in_to_amazon'
/Users/cggaurav/.rvm/gems/ruby-2.1.2/gems/kindle-highlights-1.0.1/lib/kindle_highlights/client.rb:63:in `load_books_from_kindle_account'
/Users/cggaurav/.rvm/gems/ruby-2.1.2/gems/kindle-highlights-1.0.1/lib/kindle_highlights/client.rb:16:in `books'
/Users/cggaurav/Projects/apps/play/highlights/Rakefile:30:in `update'
/Users/cggaurav/Projects/apps/play/highlights/Rakefile:56:in `block in <top (required)>'
/Users/cggaurav/.rvm/gems/ruby-2.1.2/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => default => download
(See full trace by running task with --trace)
@cggaurav
Copy link
Author

As I debug this, the first time I run kindle.books, I get the error, but not the same call again. Hmm.

@speric
Copy link
Owner

speric commented Oct 19, 2016

This is simply an error being returned from Amazon. Perhaps you are using the wrong sign in credentials?

@cggaurav
Copy link
Author

Yeah, but this doesn't happen via the console or logging in via amazon.com and the credentials are right. Is this to do with request timing out if you have a lot of entries? I tried the user-agent option too. Hmm

@cggaurav
Copy link
Author

cggaurav commented Dec 3, 2016

@speric I fixed this by doing a double sign in. First time, I expect the error and second time I get the books. Custom for me - but if it happens to more people, open to submitting a PR for another retry.

@speric
Copy link
Owner

speric commented Dec 5, 2016

Thanks @cggaurav!

@gauravmc
Copy link

I get this same problem. Does Amazon hate people named 'Gaurav'? This is super odd.

@smitmartijn
Copy link

I'm having the same issue, but my name isn't Guarav. ;-)

@cggaurav could you share the code which you used to fix it? Thanks!

@cggaurav
Copy link
Author

@sirupsen
Copy link
Contributor

sirupsen commented Dec 30, 2016

#12 should fix this

@whacked
Copy link

whacked commented Jan 17, 2017

WFM 👍

@sirupsen
Copy link
Contributor

sirupsen commented Jan 17, 2017

@speric just released in 1.0.2 that has this fix :)

@afomi
Copy link

afomi commented Jan 26, 2017

I've upgraded to 1.0.2 and am still seeing the login error consistently (in multiple environments): Unable to sign in, received error: 'Enter a valid email or mobile number'

I'm looking through Amazon settings seeing if changing settings helps, but no luck so far. Any ideas?

@blackarcanis
Copy link

Same issue for me.
+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants