alexa_media_player: Unknown Error when submitting Captcha Info or Verification Method

When adding integration at the submitting Captcha form, it returns an Unknown Error message after about 15-30 seconds of spinning. Looking through the logs I can’t find a specific error. I can ping from my HA system. I don’t have a pickle file and looking through the advanced html files that get generated everything seems ok, just seems to fail at captcha submission.

System details

  • Home-assistant (version): 0.105.5
  • Hassio (Yes/No): Yes
  • alexa_media (version from or HA startup): 2.5.5
  • alexapy (version from pip show alexapy or HA startup):


2020-02-20 09:49:08 DEBUG (MainThread) [custom_components.alexa_media.config_flow] show_form user None None OrderedDict([('email', <class 'str'>), ('password', <class 'str'>), ('url', <class 'str'>), ('debug', <class 'bool'>), ('include_devices', <class 'str'>), ('exclude_devices', <class 'str'>), ('scan_interval', <class 'int'>)])
2020-02-20 09:49:25 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating new login
2020-02-20 09:49:26 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Testing login status: {'error_message': 'Important Message!\n            To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.\n          ', 'captcha_required': True, 'captcha_image_url': ''}
2020-02-20 09:49:26 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating config_flow to request captcha
2020-02-20 09:49:26 DEBUG (MainThread) [custom_components.alexa_media.config_flow] show_form captcha {'email': '', 'url': '', 'captcha_image': '[![captcha](](', 'message': '\n> Important Message!\n            To better protect your account, please re-enter your password and then enter the characters as they are shown in the image below.\n          '} {} OrderedDict([('password', <class 'str'>), ('captcha', <class 'str'>)])
2020-02-20 09:50:33 WARNING (MainThread) [custom_components.alexa_media.config_flow] Unknown error: 
2020-02-20 09:50:33 DEBUG (MainThread) [custom_components.alexa_media.config_flow] show_form user None {'base': 'unknown_error'} None`

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 31 (10 by maintainers)

Commits related to this issue

Most upvoted comments

From today, my account was disconnected and having same problem.

I’m getting device option and SMS. If a press device, I receive a notification from Amazon saying that it’s me. I pressed ‘yes’ and get a “Signin confirmed” but components is asking for a confirmation code. For SMS option, not receiving the message.

FWIW… I don’t know how my phone and my tablet got setup as potential push destinations for a code. They don’t show in my advanced security settings on Amazon. It could be because I installed Alexa apps on both. It could be because I have Amazon apps on both.

Thanks to the posts in this thread, here are the steps that I finally got to work:

  • Install an Authenticator App (I use Google Authenticator) on your phone.
  • Set up your Amazon account with 2FA.
  • Access Home Assistant using the mobile app on your phone.
  • Click Notifications and enter the CAPTCHA.
  • You’ll then be prompted to enter a 2FA code from your Authenticator App. Do so.

@alandtse I have debug logs, screen shots, and HTML files I generated during the troubleshooting process. I don’t feel like going through the hassle of scrubbing them for personal data, but I trust that you’re an honest person and so am willing to send them to you privately. Feel free to email me: g_r_a_n_t_a_l_e_w_i_s_@g_m_a_i_l._c_o_m (remove all underscores).

Another potential workaround for now is like this:

Add your details: email, password, server, etc. It will ask for captcha and to reenter your password. On the password field following your password add the 2FA code from the app.

Even though I have the app if I continue as normal and then try adding the 2FA code, after captcha verification, it won’t work

Enabling a 2FA in an app is a workaround because it avoids the page that is currently broken which is the page that gives options for how to generate a code. 😉 I use an app so I don’t ever see the page so that’s why I’m trying to get someone to get me the html to review.

As for why the component may suddenly work on reboot after enabling 2FA, sometimes Amazon will ask for the 2FA verification even if you don’t have it set up. If you suddenly set it up, that security check may disappear and thus the component works again.