thorsten-gehrig / alexa-remote-control

control Amazon Alexa from command Line (set volume, select station from tunein or pandora)
420 stars 103 forks source link

Failed login -- apparent captcha #10

Closed taddat closed 3 years ago

taddat commented 6 years ago

When I run the script I receive the following login error:

cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
 Try logging in to https://alexa.amazon.com with your browser. In your browser
 make sure to have all Amazon related cookies deleted and Javascript disabled!

 (For more information have a look at /tmp/.alexa.login)

When I try to login to https://alexa.amazon.com with javascript disabled I get a captcha screen. I looked at /tmp/.alexa.login and it shows a captcha request as well.

Any suggestions?

LordDarkneo commented 5 years ago

Hi, I did not set environment variable, I just filled the information in the configuration file.... MFA secret is like you said ;)

prodigy7 commented 4 years ago

Login issue here to. Script worked the first time without any problems. Now I got

cookie does not exist. logging in ...
ERROR: Amazon Login was unsuccessful. Possibly you get a captcha login screen.
 Try logging in to https://alexa.amazon.de with your browser. In your browser
 make sure to have all Amazon related cookies deleted and Javascript disabled!

 (For more information have a look at /tmp/.alexa.login)

 To avoid issues with captcha, try using Multi-Factor Authentication.
 To do so, first set up Two-Step Verification on your Amazon account, then
 configure this script (or the environment) with your MFA secret.
 Support for Multi-Factor Authentication requires 'oathtool' to be installed.

Look into /tmp/.alexa.login shows me, amazon is requesting a captcha confirmation

martinorob commented 4 years ago

Same here...

abhatikar commented 4 years ago

Here are the steps to be followed to fix the issue.

  1. go to your amazon. and go to accounts option to enable MFA
  2. In the section Backup methods, add a new app 3 You should see a QR code. Click the link below saying cannot read QR code.
  3. Copy the MFA code e.g KG32 2TCT PLCC O6MK GOMS TZTV 7G6A FMQY Q3AL YZMV WLA7 PHWF 75PQ.
  4. Open the script alexa_remote_control.sh and add above code to MFA_SECRET.
  5. run the ./alexa_remote_control.sh -a 7 if you get the same cookie error, run the command oathtool --base32 --totp "MFA_SECRET"
    The result of the command would be a number, copy that number and go to the browser where you got the MFA code and enter that code in the box below saying OTP and click submit
  6. Return back to the terminal and run the ./alexa_remote_control.sh -a