Repository: alandtse/alexa_media_player

Issue #568: Unknown Error when submitting Captcha Info or Verification Method
Created: 2020-02-20T17:06:54Z
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 alexa.amazon.com 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 const.py or HA startup): 2.5.5
alexapy (version from pip show alexapy or HA startup):

Logs
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': 'https://opfcaptcha-prod.s3.amazonaws.com/7858e8c0cbb940babfb9e890e6e71dfc.jpg?AWSAccessKeyId=AKIA5WBBRBBBUVOQGKFM&Expires=1582217666&Signature=CMplDWJDDI9cTQz7LRy7yqj8d2g%3D'}
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': '########@gmail.com', 'url': 'amazon.com', 'captcha_image': '[![captcha](https://opfcaptcha-prod.s3.amazonaws.com/7858e8c0cbb940babfb9e890e6e71dfc.jpg?AWSAccessKeyId=AKIA5WBBRBBBUVOQGKFM&Expires=1582217666&Signature=CMplDWJDDI9cTQz7LRy7yqj8d2g%3D)](https://opfcaptcha-prod.s3.amazonaws.com/7858e8c0cbb940babfb9e890e6e71dfc.jpg?AWSAccessKeyId=AKIA5WBBRBBBUVOQGKFM&Expires=1582217666&Signature=CMplDWJDDI9cTQz7LRy7yqj8d2g%3D)', '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`

Duplicate issue #571: Unknown error, please report with logs
Created: 2020-02-27T15:05:21Z
Hi,
When I try to add in the integration of HA have this error, and don´t go to captcha verification.
If change amazon.es for amazon.com, works, and can integrate in HA, but only is avaiable the "don´t disturb function" in my echos.
I don´t know how to see debug info, because HA register only says:
2020-02-27 14:20:12 WARNING (MainThread) [custom_components.alexa_media.config_flow] Unknown error
I try with version 2.55 and 2.54

Closing comment (2020-02-28T08:06:05Z): Dupe of #568; please see requests for log info there.