alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.51k stars 290 forks source link

Media Player not showing any echo devices #1386

Closed gmaffia closed 3 years ago

gmaffia commented 3 years ago

Adding the Alexa Media Player integration to my Home Assistant instance goes through the configuration process without any errors, but it does not display my Echo device for adding to Home Assistant after authentication happens. Log also shows an error about no access token being found.

Steps to reproduce the behavior:

  1. Install the Alexa Media Player integration to Home Assistant using HACS
  2. Install the Alexa Media Player integration from the Configuration -> Integrations interface in Home Assistant
  3. Enter configuration (username, password, 2FA key, enable debug, keep both 'Use login..' and 'Enable Oauth' options checked.
  4. When the OTP code is shown, check the checkbox 'OTP from the...'
  5. Sign in with credentials to alexa (captcha required sometimes). OTP is displayed, but it doesn't match the OTP from my authenticator app, so I use the latter.
  6. Go back to HA, After a spinner, I get a Success message.
  7. The alexa Media Player integration shows, but there are no devices

Expected behavior I would expect the list of Alexa devices for me to choose the Echo from.

System details

Logs 2021-10-13 13:05:08 WARNING (MainThread) [homeassistant.core] Unable to remove unknown service notify/alexa_media 2021-10-13 13:16:50 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /homeassistant/restart request Server disconnected 2021-10-13 13:16:50 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session 2021-10-13 13:17:08 WARNING (MainThread) [alexapy.alexalogin] No access token found; falling back to credential login instead of oauth

alandtse commented 3 years ago

The logs appear truncated. When you first login it should provide a lot more information than that. You should be seeing items from custom_components.alexa_media and alexapy.

gmaffia commented 3 years ago

@alandtse You're right, sorry. Here's the logs. Let me know if this is good enough.

2021-10-13 15:26:46 INFO (MainThread) [custom_components.alexa_media] Loaded alexapy==1.25.1
2021-10-13 15:26:46 DEBUG (MainThread) [custom_components.alexa_media.helpers] *******@****************: Returning uuid {'uuid': '7c2e0ab641c38e911705be388d4edf69', 'index': 0}
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Login created for *******@**************** - amazon.com
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Trying to load cookie from file /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Pickled cookie loaded: <class 'collections.defaultdict'> defaultdict(<class 'http.cookies.SimpleCookie'>, {'amazon.com': <SimpleCookie: at-main='Atza|...."' ubid-main='134-7147818-8137508' x-main='xj27pbvfNRyGTY?Vni9wcgG5FIwpnxfn'>})
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Trying to load aiohttpCookieJar to session
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Loaded 10 cookies
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/alexa_media.*******@****************.pickle
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Using cookies to log in
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Testing whether logged in to alexa.amazon.com
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Cookies: Set-Cookie: at-main=Atza|[redacted]
Set-Cookie: .....
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] Header: {"User-Agent": "AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone", "Accept": "*/*", "Accept-Language": "*", "DNT": "1", "Upgrade-Insecure-Requests": "1"}
2021-10-13 15:26:46 WARNING (MainThread) [alexapy.alexalogin] No access token found; falling back to credential login instead of oauth.
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] No refresh token found to get access token
2021-10-13 15:26:46 DEBUG (MainThread) [alexapy.alexalogin] CSRF already exists; no need to discover
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexalogin] GET: 
https://alexa.amazon.com/api/bootstrap with
<CIMultiDictProxy('Host': 'alexa.amazon.com', 'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Accept-Encoding': 'gzip, deflate', 'Cookie': '...')>
 returned 200: with response <CIMultiDictProxy('Content-Type': 'application/json', 'Content-Length': '156', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Wed, 13 Oct 2021 18:26:47 GMT', 'x-amz-rid': 'KQH7AR358QJMMG2799EW', 'x-amzn-RequestId': '5dfa3394-e8c5-45f9-bb0d-441619f457f2', 'Content-Encoding': 'gzip', 'Vary': 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent', 'Permissions-Policy': 'interest-cohort=()', 'X-Cache': 'Miss from cloudfront', 'Via': '1.1 ae96d40a91e1448111c0037e1c86443d.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'EZE51-C1', 'X-Amz-Cf-Id': '...')>
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexalogin] Logged in as *******@**************** to amazon.com with id: A2P7DL31U1T8N0
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexalogin] Domain amazon.com matches reported account domain: https://www.amazon.com
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: .....
2021-10-13 15:26:47 DEBUG (MainThread) [custom_components.alexa_media] Testing login status: {'login_successful': True}
2021-10-13 15:26:47 DEBUG (MainThread) [custom_components.alexa_media] Setting up Alexa devices for *******@****************
2021-10-13 15:26:47 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c6565fe50>
2021-10-13 15:26:47 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149607000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-3103' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:26:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #0 in 5s
2021-10-13 15:26:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c6a03ad90>
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149608000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:26:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:26:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Creating coordinator
2021-10-13 15:26:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Refreshing coordinator
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/phoenix returned 200::application/json
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: get_network_details response: {'locationDetails': {'locationDetails': {'Default_Location': {'locationId': 'Default_Location', 'amazonBridgeDetails': {'amazonBridgeDetails': {'LambdaBridge_SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9': {'amazonBridgeIdentifier': {'amazonBridgeDSN': 'SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9', 'amazonBridgeType': 'LambdaBridge', 'lambdaBridge': True, 'amazonBridgeSource': 'SKILL'}, 'applianceDetails': {'applianceDetails': {'SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF': {'applianceId': 'SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF', 'endpointTypeId': '', 'driverIdentity': {'namespace': 'SKILL', 'identifier': 'eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9'}, 'manufacturerName': 'Tapo', 'friendlyDescription': 'Tapo Smart Wi-Fi Camera C200, MAC B0-95-75-FE-8B-FF', 'modelName': '', 'deviceType': 'CLOUD_DISCOVERED_DEVICE', 'version': '0', 'friendlyName': 'Lobby', 'friendlyNameModifiedAt': 1633376134316, 'capabilitiesModifiedAt': 1633376134316, 'ipAddress': '', 'port': '', 'entityId': 'aef42428-7410-4f7b-ba6f-28032dbad016', 'applianceNetworkState': {'reachability': 'REACHABLE', 'lastSeenAt': 1634149608831, 'createdAt': 1633376134316, 'lastSeenDiscoverySessionId': {'value': 'a15fdc70-6c5b-42a8-8d99-ffd1b1790754'}}, 'tags': {'tagNameToValueSetMap': {}}, 'additionalApplianceDetails': {'additionalApplianceDetails': {'_type': 'smbCamera'}}, 'firmwareVersion': '0', 'actions': [], 'capabilities': [{'capabilityType': 'AVSInterfaceCapability', 'type': 'AlexaInterface', 'version': '3', 'interfaceName': 'Alexa'}, {'capabilityType': 'AVSCameraStreamControllerCapability', 'type': 'AlexaInterface', 'version': '3', 'cameraStreamConfigurations': [{'protocols': ['RTSP'], 'resolutions': [{'width': 640, 'height': 480}], 'authorizationTypes': ['NONE'], 'videoCodecs': ['H264'], 'audioCodecs': ['G711']}], 'interfaceName': 'Alexa.CameraStreamController'}, {'capabilityType': 'AVSInterfaceCapability', 'type': 'AlexaInterface', 'version': '3', 'properties': {'supported': [{'name': 'connectivity'}], 'proactivelyReported': True, 'retrievable': True, 'readOnly': False}, 'interfaceName': 'Alexa.EndpointHealth'}], 'applianceTypes': ['CAMERA'], 'isEnabled': True, 'aliases': [], 'connectedVia': '', 'alexaDeviceIdentifierList': [], 'applianceKey': 'aef42428-7410-4f7b-ba6f-28032dbad016', 'applianceDriverIdentity': {'namespace': 'SKILL', 'identifier': 'eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9'}, 'ipaddress': '', 'applianceLambdaControlled': True, 'mergedApplianceIds': ['SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF']}}}}}}, 'applianceGroups': {'applianceGroups': {}}}}}, 'version': '1.0', 'relations': []}
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2021-10-13 15:26:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bootstrap returned 200::application/json
2021-10-13 15:26:49 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:26:49 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:26:49 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-3139' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:26:49 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:26:49 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:26:50 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] Alexa entities have been loaded. Prepared for discovery.
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Found 1 devices, 1 bluetooth
2021-10-13 15:26:50 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/notifications returned 200::application/json
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated 0 notifications for 1 devices at 2021-10-13 15:26:50.347240-03:00
2021-10-13 15:26:50 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated last_called: 
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] Excluding This Device for lacking capability
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Existing: [] New: []; Filtered out by not being in include: [] or in exclude: []
2021-10-13 15:26:50 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 15:26:50 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: .....
2021-10-13 15:26:50 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 2.018 seconds (success: True)
2021-10-13 15:26:51 DEBUG (MainThread) [custom_components.alexa_media] Completing remaining startup tasks.
2021-10-13 15:26:59 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #1 in 10s
2021-10-13 15:26:59 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c603f1670>
2021-10-13 15:26:59 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149619000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:27:00 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:27:00 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:27:00 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-3864' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:27:00 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:27:00 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:27:20 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #2 in 20s
2021-10-13 15:27:20 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c6568de50>
2021-10-13 15:27:20 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149640000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:27:21 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:27:21 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:27:21 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-4131' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:27:21 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:27:21 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:28:01 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #3 in 40s
2021-10-13 15:28:01 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c603e9ca0>
2021-10-13 15:28:01 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149681000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:28:02 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:28:02 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:28:02 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-4357' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:28:02 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:28:02 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:29:22 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #4 in 80s
2021-10-13 15:29:22 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c657c6b50>
2021-10-13 15:29:22 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634149762000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 15:29:23 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 15:29:23 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 15:29:23 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-4717' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 15:29:23 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 15:29:23 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 15:32:03 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; retries exceeded; polling
2021-10-13 15:32:03 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2021-10-13 15:32:03 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2021-10-13 15:32:03 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2021-10-13 15:32:04 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 400:Bad Request:application/json
2021-10-13 15:32:04 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/notifications returned 200::application/json
2021-10-13 15:32:04 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated 0 notifications for 1 devices at 2021-10-13 15:32:04.672673-03:00
2021-10-13 15:32:04 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2021-10-13 15:32:04 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated last_called: 
2021-10-13 15:32:04 DEBUG (MainThread) [custom_components.alexa_media] Excluding This Device for lacking capability
2021-10-13 15:32:04 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Existing: [] New: []; Filtered out by not being in include: [] or in exclude: []
2021-10-13 15:32:04 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 15:32:04 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie:.....
2021-10-13 15:32:04 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 1.551 seconds (success: True)
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Attempting to unload entry for *******@****************
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to media_player
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to notify
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to switch
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to sensor
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to alarm_control_panel
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media] Forwarding unload entry to light
2021-10-13 17:09:30 DEBUG (MainThread) [custom_components.alexa_media.notify] Attempting to unload notify
2021-10-13 17:09:30 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: .....
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Connection closed: True
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media] Removing accounts data and services
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media] Removing config_flows data
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media] Removing alexa_media data structure
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media] Unloaded entry for *******@****************
2021-10-13 17:09:31 INFO (MainThread) [custom_components.alexa_media] 
-------------------------------------------------------------------
alexa_media
Version: 3.10.10
This is a custom component
If you have any issues with this you need to open an issue here:
https://github.com/custom-components/alexa_media_player/issues
-------------------------------------------------------------------

2021-10-13 17:09:31 INFO (MainThread) [custom_components.alexa_media] Loaded alexapy==1.25.1
2021-10-13 17:09:31 DEBUG (MainThread) [custom_components.alexa_media.helpers] *******@****************: Returning uuid {'uuid': '7c2e0ab641c38e911705be388d4edf69', 'index': 0}
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Login created for *******@**************** - amazon.com
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Trying to load cookie from file /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Pickled cookie loaded: .....
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Trying to load aiohttpCookieJar to session
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Loaded 10 cookies
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/alexa_media.*******@****************.pickle
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Using cookies to log in
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Testing whether logged in to alexa.amazon.com
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Cookies: Set-Cookie: ....
Set-Cookie: .....
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: .....
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Header: {"User-Agent": "AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone", "Accept": "*/*", "Accept-Language": "*", "DNT": "1", "Upgrade-Insecure-Requests": "1"}
2021-10-13 17:09:31 WARNING (MainThread) [alexapy.alexalogin] No access token found; falling back to credential login instead of oauth.
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] No refresh token found to get access token
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] CSRF already exists; no need to discover
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] GET: 
https://alexa.amazon.com/api/bootstrap with
<CIMultiDictProxy('Host': 'alexa.amazon.com', 'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Accept-Encoding': 'gzip, deflate', 'Cookie': '...')>
 returned 200: with response <CIMultiDictProxy('Content-Type': 'application/json', 'Content-Length': '156', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Wed, 13 Oct 2021 20:09:31 GMT', 'x-amz-rid': '....', 'x-amzn-RequestId': '...', 'Content-Encoding': 'gzip', 'x-amzn-ActionTrace': 'amzn1.tr.71889385-3e87-11e6-99f3-0a51a1b50200.533.s9SFFZ.bifIPI', 'Vary': 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent', 'Permissions-Policy': 'interest-cohort=()', 'X-Cache': 'Miss from cloudfront', 'Via': '1.1 4e6914a651880fafa65640c6561ae2a8.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'EZE51-C1', 'X-Amz-Cf-Id': '...')>
2021-10-13 17:09:31 DEBUG (MainThread) [alexapy.alexalogin] Logged in as *******@**************** to amazon.com with id: A2P7DL31U1T8N0
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Domain amazon.com matches reported account domain: https://www.amazon.com
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: ......
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Login confirmed for *******@**************** - amazon.com; saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie: ...

2021-10-13 17:09:32 DEBUG (MainThread) [custom_components.alexa_media] Testing login status: {'login_successful': True}
2021-10-13 17:09:32 DEBUG (MainThread) [custom_components.alexa_media] Setting up Alexa devices for *******@****************
2021-10-13 17:09:32 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c5f0e7580>
2021-10-13 17:09:32 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155772000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28322' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:09:33 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #0 in 5s
2021-10-13 17:09:33 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c6029a550>
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155773000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:09:33 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:09:33 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Creating coordinator
2021-10-13 17:09:33 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Refreshing coordinator
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/phoenix returned 200::application/json
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: get_network_details response: {'locationDetails': {'locationDetails': {'Default_Location': {'locationId': 'Default_Location', 'amazonBridgeDetails': {'amazonBridgeDetails': {'LambdaBridge_SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9': {'amazonBridgeIdentifier': {'amazonBridgeDSN': 'SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9', 'amazonBridgeType': 'LambdaBridge', 'amazonBridgeSource': 'SKILL', 'lambdaBridge': True}, 'applianceDetails': {'applianceDetails': {'SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF': {'applianceId': 'SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF', 'endpointTypeId': '', 'driverIdentity': {'namespace': 'SKILL', 'identifier': 'eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9'}, 'manufacturerName': 'Tapo', 'friendlyDescription': 'Tapo Smart Wi-Fi Camera C200, MAC B0-95-75-FE-8B-FF', 'modelName': '', 'deviceType': 'CLOUD_DISCOVERED_DEVICE', 'version': '0', 'friendlyName': 'Lobby', 'friendlyNameModifiedAt': 1633376134316, 'capabilitiesModifiedAt': 1633376134316, 'ipAddress': '', 'port': '', 'entityId': 'aef42428-7410-4f7b-ba6f-28032dbad016', 'applianceNetworkState': {'reachability': 'REACHABLE', 'lastSeenAt': 1634155773534, 'createdAt': 1633376134316, 'lastSeenDiscoverySessionId': {'value': 'a15fdc70-6c5b-42a8-8d99-ffd1b1790754'}}, 'tags': {'tagNameToValueSetMap': {}}, 'additionalApplianceDetails': {'additionalApplianceDetails': {'_type': 'smbCamera'}}, 'firmwareVersion': '0', 'actions': [], 'capabilities': [{'capabilityType': 'AVSInterfaceCapability', 'type': 'AlexaInterface', 'version': '3', 'interfaceName': 'Alexa'}, {'capabilityType': 'AVSCameraStreamControllerCapability', 'type': 'AlexaInterface', 'version': '3', 'cameraStreamConfigurations': [{'protocols': ['RTSP'], 'resolutions': [{'width': 640, 'height': 480}], 'authorizationTypes': ['NONE'], 'videoCodecs': ['H264'], 'audioCodecs': ['G711']}], 'interfaceName': 'Alexa.CameraStreamController'}, {'capabilityType': 'AVSInterfaceCapability', 'type': 'AlexaInterface', 'version': '3', 'properties': {'supported': [{'name': 'connectivity'}], 'proactivelyReported': True, 'retrievable': True, 'readOnly': False}, 'interfaceName': 'Alexa.EndpointHealth'}], 'applianceTypes': ['CAMERA'], 'isEnabled': True, 'aliases': [], 'connectedVia': '', 'alexaDeviceIdentifierList': [], 'applianceKey': 'aef42428-7410-4f7b-ba6f-28032dbad016', 'applianceDriverIdentity': {'namespace': 'SKILL', 'identifier': 'eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9'}, 'ipaddress': '', 'applianceLambdaControlled': True, 'mergedApplianceIds': ['SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjU2NzFkNDMxLTMxNDgtNDFlMS1iNmRlLTJjMjY4YTdmMmZhZCIsInN0YWdlIjoibGl2ZSJ9_mac:B09575FE8BFF']}}}}}}, 'applianceGroups': {'applianceGroups': {}}}}}, 'version': '1.0', 'relations': []}
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bootstrap returned 200::application/json
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:09:33 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28343' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:09:34 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:09:34 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:09:35 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] Alexa entities have been loaded. Prepared for discovery.
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Found 1 devices, 1 bluetooth
2021-10-13 17:09:35 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/notifications returned 200::application/json
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated 0 notifications for 1 devices at 2021-10-13 17:09:35.600670-03:00
2021-10-13 17:09:35 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated last_called: 
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] Excluding This Device for lacking capability
2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Existing: [] New: []; Filtered out by not being in include: [] or in exclude: []
2021-10-13 17:09:35 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
2021-10-13 17:09:35 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies:
Set-Cookie:....

2021-10-13 17:09:35 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 2.622 seconds (success: True)
2021-10-13 17:09:44 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #1 in 10s
2021-10-13 17:09:44 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c5f0b7a00>
2021-10-13 17:09:44 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155784000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:09:44 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:09:44 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:09:44 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28417' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:09:44 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:09:44 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:10:04 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #2 in 20s
2021-10-13 17:10:04 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c5f0d99d0>
2021-10-13 17:10:04 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155804000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:10:05 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:10:05 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:10:05 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28500' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:10:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:10:05 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:10:45 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #3 in 40s
2021-10-13 17:10:45 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c656b6250>
2021-10-13 17:10:45 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155845000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:10:47 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:10:47 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:10:47 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28621' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:10:47 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:10:47 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:12:07 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; reconnect #4 in 80s
2021-10-13 17:12:07 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket created: <alexapy.alexawebsocket.WebsocketEchoClient object at 0x7f9c5f060a90>
2021-10-13 17:12:07 DEBUG (MainThread) [alexapy.alexawebsocket] Connecting to wss://dp-gw-na-js.amazon.com/?x-amz-device-type=ALEGCNGL9K0HM&x-amz-device-serial=-1634155927000 with {'User-Agent': 'AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone', 'Accept': '*/*', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Referer': 'https://alexa.amazon.com/api/bootstrap', 'Origin': 'https://alexa.amazon.com'}
2021-10-13 17:12:08 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2021-10-13 17:12:08 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2021-10-13 17:12:08 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-28861' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.9/site-packages/alexapy/alexawebsocket.py:138> result=None>
2021-10-13 17:12:08 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2021-10-13 17:12:08 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket creation failed: Cannot write to closing transport
2021-10-13 17:14:48 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Websocket closed; retries exceeded; polling
2021-10-13 17:14:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2021-10-13 17:14:48 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2021-10-13 17:14:49 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2021-10-13 17:14:49 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 400:Bad Request:application/json
2021-10-13 17:14:50 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/notifications returned 200::application/json
2021-10-13 17:14:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated 0 notifications for 1 devices at 2021-10-13 17:14:50.180570-03:00
2021-10-13 17:14:50 DEBUG (MainThread) [alexapy.alexaapi] *******@****************: static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2021-10-13 17:14:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Updated last_called: 
2021-10-13 17:14:50 DEBUG (MainThread) [custom_components.alexa_media] Excluding This Device for lacking capability
2021-10-13 17:14:50 DEBUG (MainThread) [custom_components.alexa_media] *******@****************: Existing: [] New: []; Filtered out by not being in include: [] or in exclude: []
2021-10-13 17:14:50 DEBUG (MainThread) [alexapy.alexalogin] Saving cookie to /config/.storage/alexa_media.*******@****************.pickle
Set-Cookie: ....

2021-10-13 17:14:50 DEBUG (MainThread) [custom_components.alexa_media] Finished fetching alexa_media data in 2.131 seconds (success: True)

I do see that there is one device (a TAPO camera) that comes from alexa, but the Echo is not showing up anywhere?

alandtse commented 3 years ago

What do you see if you go to this page here in your browser? https://alexa.amazon.com/api/devices-v2/device

This is how we identify devices.

gmaffia commented 3 years ago

@alandtse This is the output { devices: [ { accountName: "Este dispositivo", appDeviceList: [ { deviceAccountId: "A03515402SWDCI9YO8HXC", deviceType: "A2IVLV5VM2W81", serialNumber: "7c2e0ab641c38e911705be388d4edf69" } ], capabilities: [ "ADAPTIVE_LISTENING", "VOLUME_SETTING", "MICROPHONE" ], charging: null, clusterMembers: [ ], deviceAccountId: "A03515402SWDCI9YO8HXC", deviceFamily: "VOX", deviceOwnerCustomerId: "A2P7DL31U1T8N0", deviceType: "A2IVLV5VM2W81", deviceTypeFriendlyName: null, essid: null, language: null, macAddress: null, online: true, parentClusters: [ ], postalCode: null, registrationId: null, remainingBatteryLevel: null, serialNumber: "7c2e0ab641c38e911705be388d4edf69", softwareVersion: "1" } ] }

alandtse commented 3 years ago

Are you logging into the correct Amazon domain for your region?

gmaffia commented 3 years ago

@alandtse How do I know which is the correct domain for my region? I am in Argentina, but if you go to amazon.com.ar, that redirects to amazon.com. Should I try amazon.com.ar, or would it be just the same? If I try using amazon.com.ar, then I'm taken to the alexa login page twice, asked for a OTP twice, but then when hitting this endpoint on public cloud: https://public_cloud_url/auth/alexamedia/callback?flow_id=015d319b58b44a88bca0ff2dcd6c0066 I get a 500 error back. Here's some logs:

``` 2021-10-14 13:07:54 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-14 13:07:54 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tapo_control which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-14 13:07:54 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-14 13:07:54 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-10-14 13:08:00 DEBUG (MainThread) [custom_components.alexa_media] Importing config information for ********@*************** - amazon.com from configuration.yaml 2021-10-14 13:08:00 DEBUG (MainThread) [custom_components.alexa_media] Creating new config entry 2021-10-14 13:08:00 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating new login 2021-10-14 13:08:00 DEBUG (MainThread) [custom_components.alexa_media.helpers] ********@***************: Returning uuid {'uuid': '7c2e0ab641c38e911705be388d4edf69', 'index': 0} 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Login created for ********@*************** - amazon.com 2021-10-14 13:08:00 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Trying to login {} 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/.storage/alexa_media.********@***************.pickle 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/alexa_media.********@***************.pickle 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Searching for cookies from /config/.storage/alexa_media.********@***************.txt 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Using credentials to log in 2021-10-14 13:08:00 DEBUG (MainThread) [alexapy.alexalogin] Attempting oauth login to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] GET: https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US with returned 200:OK with response 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Processing https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Links: {'0': ('Forgot password?', 'https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&prevRID=0J3TEVFGTH3P3N0NXF4H&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.oa2.client_id=device%3A373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0'), '1': ('Conditions of Use', 'https://alexa.amazon.com/conditions_of_use_mobile?pop-up=1'), '2': ('Privacy Notice', 'https://alexa.amazon.com/privacy_policy_mobile'), '3': ('Create a new Amazon account', 'https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&prevRID=0J3TEVFGTH3P3N0NXF4H&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.oa2.client_id=device%3A373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0')} 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Found standard login page 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Found form to process:

Sign-In

By continuing, you agree to Amazon's Conditions of Use and Privacy Notice.
2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Found post url to https://www.amazon.com/ap/signin/146-0091552-2084050 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Preparing form submission to https://www.amazon.com/ap/signin/146-0091552-2084050 with input data: OrderedDict([('oauth_login', True), ('email', '********@***************'), ('password', 'REDACTED 9 CHARS'), ('url', 'amazon.com'), ('debug', True), ('scan_interval', 60.0), ('include_devices', ''), ('exclude_devices', '')]) 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] WARNING: Detected missing params: ['encryptedPasswordExpected'] 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies: Set-Cookie: session-id=146-0091552-2084050; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:08:01 GMT; Path=/; Secure Set-Cookie: session-id-time=2264947681l; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:08:01 GMT; Path=/; Secure Set-Cookie: lc-main=en_US; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:08:01 GMT; Path=/; Secure 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Submit Form Data: {"appActionToken": "wYj2FLjhbp50PBqIslzphh672Sfzkj3D", "appAction": "SIGNIN", "openid.return_to": "ape:aHR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n", "prevRID": "ape:MEozVEVWRkdUSDNQM04wTlhGNEg=", "workflowState": "eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.iuKzo1F2NxV1EyaINVhR0qdHctkTIyxahSPhjXCyrQ-8JAgx-4AkSg.fjyBBE3_n2JUaeMr._D3Pa1mJkdPqw2WW3lXKiGqxoob2ia1CwmuzzsuIcMCy7RSG0u3wjntsSisPlKbCmy-I4UaU_YjHa-ku_6ADKeoxioN0ODqTbnO-btW2H_BzRm9vgReF3W9QlB47TjNZWanRnjxiWG0Ubttk6tAeKcA4UOfIONDLl99mnLs6GazHVOKAsZf8jybQw5qpDyflN_RxilsXqEEnYU1A57sL9oG2pOn-YLA984vbS3aoUiXkp0lcWNWnp_QxFMuvuxyUPG6OCBNxrEga-wi7-qMqbsFCD7oOyqGbEcFGa30S_7nopPyZ2EQHVz5Cq8XkMYcOB0F61u7sFAII0uGH6uhxcZlY13hexEGkTwNOV6P39pGyoG1GxsftLgCxmnNI7pdNUqSzPpSPY8Lk7FErEUI1q54vPchifjTVPdn2QSPl_5WeXcNZ0QllAnXYAkUV3sBhR4rjf5VeLxE6xBVOs1eDAp_7Ax44XVXbPonAvmMVOurLaUOGVS-jBcX9cj7PeHWl2-ORAEpjrbTt8X6nxrygMKD1Fut19ywnPLY.Ih2fS_F6LNm4D8G72cP2gw", "email": "********@***************", "password": "REDACTED 9 CHARS", "showPasswordChecked": "false", "encryptedPasswordExpected": "", "rememberMe": "true"} 2021-10-14 13:08:01 DEBUG (MainThread) [alexapy.alexalogin] Header: {"User-Agent": "AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone", "Accept": "*/*", "Accept-Language": "*", "DNT": "1", "Upgrade-Insecure-Requests": "1", "Referer": "https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:373831313865323764343862343765383338316134313434633732333933363123413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US"} 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] POST: redirected from https://www.amazon.com/ap/signin/146-0091552-2084050 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] GET: https://www.amazon.com/ap/mfa?ie=UTF8&arb=4d1a26fa-c8f3-41fd-960e-350accdf6d13&mfa.arb.value=4d1a26fa-c8f3-41fd-960e-350accdf6d13&mfa.arb.key=arb with returned 200:OK with response 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] Processing https://www.amazon.com/ap/mfa?ie=UTF8&arb=4d1a26fa-c8f3-41fd-960e-350accdf6d13&mfa.arb.value=4d1a26fa-c8f3-41fd-960e-350accdf6d13&mfa.arb.key=arb 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] Links: {'0': ("Didn't receive the OTP?", 'https://www.amazon.com/ap/mfa/new-otp?ie=UTF8&arb=794e8878-b12f-4195-9bcc-0ed949847d6b')} 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] 2FA requested 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] Found form to process:

Two-Step Verification

For added security, please enter the One Time Password (OTP) generated by your Authenticator App

2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] Found post url to https://www.amazon.com/ap/signin 2021-10-14 13:08:03 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Testing login status: {'securitycode_required': True} 2021-10-14 13:08:03 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating config_flow to request 2FA. Saved security code None 2021-10-14 13:08:03 DEBUG (MainThread) [alexapy.alexalogin] Unable to generate OTP; 2FA app key not configured 2021-10-14 13:14:29 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Processing input for two_factor: 2021-10-14 13:14:29 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Testing login status: {'securitycode_required': True} 2021-10-14 13:14:29 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating config_flow to request 2FA. Saved security code None 2021-10-14 13:14:29 DEBUG (MainThread) [alexapy.alexalogin] Unable to generate OTP; 2FA app key not configured 2021-10-14 13:27:42 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating new login 2021-10-14 13:27:42 DEBUG (MainThread) [custom_components.alexa_media.helpers] ********@***************: Returning uuid {'uuid': 'd43a884f21d50932b7ddbfb1bd6715b0', 'index': 0} 2021-10-14 13:27:42 DEBUG (MainThread) [alexapy.alexalogin] Creating TOTP for S************************************************ZNQ 2021-10-14 13:27:42 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 298953 2021-10-14 13:27:42 DEBUG (MainThread) [alexapy.alexalogin] Login created for ********@*************** - amazon.com.ar 2021-10-14 13:27:43 DEBUG (MainThread) [alexapy.alexalogin] Attempting oauth login to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:27:43 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 298953 2021-10-14 13:27:43 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 2 modifiers: ['prepend_relative_urls', 'change_host_to_proxy'] 2021-10-14 13:27:43 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 1 tests: ['test_amazon_url'] 2021-10-14 13:27:43 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 298953 2021-10-14 13:27:43 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 3 modifiers: ['autofill', 'prepend_relative_urls', 'change_host_to_proxy'] 2021-10-14 13:27:43 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 298953 2021-10-14 13:27:43 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Generating OTP from 298953 2021-10-14 13:28:26 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Starting proxy for ********@*************** - amazon.com.ar 2021-10-14 13:28:26 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Found flow_id; adding 127.0.0.1 to known_ips for 300 seconds 2021-10-14 13:28:26 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received get: https://cloud_hostname/auth/alexamedia/proxy?config_flow_id=015d319b58b44a88bca0ff2dcd6c0066&callback_url=https://cloud_hostname/auth/alexamedia/callback?flow_id%3D015d319b58b44a88bca0ff2dcd6c0066 for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:26 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Starting auth capture proxy for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:26 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Upgrade-Insecure-Requests': '1', 'sec-ch-ua-mobile': '?0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'sec-ch-ua-platform': '"Windows"', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:28:26 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting get to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US headers: {'Connection': 'keep-alive', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Upgrade-Insecure-Requests': '1', 'sec-ch-ua-mobile': '?0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'sec-ch-ua-platform': '"Windows"', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "upgrade-insecure-requests": "1", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-site": "same-origin", "sec-fetch-mode": "same-origin", "sec-fetch-dest": "empty", "referer": "https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6"} returned 200:OK with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:28:26 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', 'AHW99R1E4REXSVSFE3XM'), ('set-cookie', 'ap-fid=""; Domain=.amazon.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/ap/; Secure'), ('set-cookie', 'session-id=138-2116772-7474850; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:26 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948906l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:26 GMT; Path=/; Secure'), ('set-cookie', 'lc-main=en_US; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:26 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('pragma', 'No-cache'), ('cache-control', 'max-age=0, no-cache, no-store, must-revalidate'), ('expires', 'Thu, 01 Jan 1970 00:00:00 GMT'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 4 modifiers: ['autofill', 'prepend_relative_urls', 'change_host_to_proxy', 'change_empty_to_proxy'] 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill 2021-10-14 13:28:27 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:28:27 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href -> https://cloud_hostname/auth/alexamedia/proxy 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /conditions_of_use_mobile?pop-up=1 -> https://cloud_hostname/auth/alexamedia/proxy/conditions_of_use_mobile?pop-up=1 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /privacy_policy_mobile -> https://cloud_hostname/auth/alexamedia/proxy/privacy_policy_mobile 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=AHW99R1E4REXSVSFE3XM:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=AHW99R1E4REXSVSFE3XM:0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=AHW99R1E4REXSVSFE3XM:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=AHW99R1E4REXSVSFE3XM:0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.us.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin= 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets=&QmmAyoMU= 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets= 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action https://www.amazon.com/ap/signin/138-2116772-7474850 -> https://cloud_hostname/auth/alexamedia/proxy/ap/signin/138-2116772-7474850 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://cloud_hostname/auth/alexamedia/proxy/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://cloud_hostname/auth/alexamedia/proxy/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=AHW99R1E4REXSVSFE3XM&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=AHW99R1E4REXSVSFE3XM:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:/ap/uedata%3Fstaticb&id=AHW99R1E4REXSVSFE3XM:0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=AHW99R1E4REXSVSFE3XM:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:AHW99R1E4REXSVSFE3XM$uedata=s:/ap/uedata%3Fnoscript&id=AHW99R1E4REXSVSFE3XM:0 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy 2021-10-14 13:28:27 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url 2021-10-14 13:28:32 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: https://cloud_hostname/auth/alexamedia/proxy/ap/signin/138-2116772-7474850 for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:32 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'appActionToken': 'o4B5t410uX0yU2VjHGLLRWvgJKgj3D', 'appAction': 'SIGNIN', 'openid.return_to': 'ape:aHR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n', 'prevRID': 'ape:QUhXOTlSMUU0UkVYU1ZTRkUzWE0=', 'workflowState': 'eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.ZmZm_JZTVaNj-AVXTiNpJm48kNC7BlG7HJQDL9_4C-0r4eCn3QiiEA.AzaEZcv3Vwj4ElEi.7GNlo9eH2leRjAGE5XJ5CLlD2GWZSOWvQbYWwAcAqlxmZTVKWtziirF3q5nEQtkZ-yYftxqdTUT7a_VpvXiRaRA6U_Ws7hxqtBZ5DL39WEC3LKOlOs9bSSSYganrKVTeLQgiXF1N5w6JplSV7PfVNrbjWCP3qOGw9ukHH8bvExgz_2bgSJp0KD-_z98waDhEDebMaksN7pmiqByUEXA7Bq0kEE9Yd3stMaSMXiKIa249M34TnoGfsoB2t0FOdDmdB1WU6XlxBdMvwhMJyC4s-ayVrC7wexbCv_-xWwX5uLh4YjOGGhozKKgy3_2NRgp1arI_4zoxOgqFnufRZvVa0FE4p3nO9CtVAlVtO8TagflzNqMjbGAqg-j1yk3lQgSB_xeI3zymfecVbCStodfreUGEpcxeUO8fJqv_UVbdA9CULs_Oay4deHUPs5Ax-NhuxjU2sPwy50yz-oX_U7md9QPGz2a79QUBVgmHSXcSO37sJpOOv0JFHMpO6D5AZW61Pj1EchCmmjXDn4XEndlwRqWTYY-nnhxM.Up0LeXJIp6fjHkIIca3Yxg', 'email': '********@***************', 'encryptedPwd': 'AYAAFMeKNMlQZgMifbc9o1lZ4vgAAAABAAZzaTptZDUAIDU2ZDE0ZWRjZThlMmNiNmM2OD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7uuxTQc/3w1DBKGQj5sB4+Xe8VANn+SMOHmMNzUfP9eNaf61eLwU35VDhGSdXeA9AcyumG93o+BojZREjL0zZyX5IvuHQZfpelaVsJYA7j4P8pMmn2OioFulggDxmGH4NFpgLCBUvOo3BHrHwu+WKG7WujDzUWArXbKfhMe6sCzql+BZizrqDwdnBCUTJueIbjrlAsoxpq4fdj7XOoHFwI/IMwO53E88HtuMvrCISITIfmAerv36T7sXNFevdsuzNQtckgay+xiLhiPrbgs9nwaCMpea0uGo2Q81832SgcKsI/aggsjLUVPpjZsKYLvztRrSN+oKgHEaRwMUXIVWyn3grabenfcZ3VQLYgBhL0KkjL44/TBwU8DA6xvPrahHbj1nQcqDA=='} 2021-10-14 13:28:32 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:28:32 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/ap/signin/138-2116772-7474850 headers: {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: , , ]> 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] POST: redirected from https://www.amazon.com/ap/signin/138-2116772-7474850 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/mfa?ie=UTF8&arb=6013d2ab-dc36-4ff6-946b-416710e1b185&mfa.arb.value=6013d2ab-dc36-4ff6-946b-416710e1b185&mfa.arb.key=arb with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "cache-control": "max-age=0", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "upgrade-insecure-requests": "1", "origin": "https://www.amazon.com", "content-type": "application/x-www-form-urlencoded", "sec-fetch-site": "same-origin", "sec-fetch-mode": "navigate", "sec-fetch-user": "?1", "sec-fetch-dest": "document", "referer": "https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6", "cookie": {"lc-main": "en_US", "session-id": "138-2116772-7474850", "session-id-time": "2264948912l", "ubid-main": "130-6471743-1288547"}} returned 200:OK with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:28:33 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', 'BD95VQJ5BJYYGME8V481'), ('set-cookie', 'session-id=138-2116772-7474850; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:33 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948913l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:33 GMT; Path=/; Secure'), ('set-cookie', 'ubid-main=130-6471743-1288547; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:33 GMT; Path=/; Secure'), ('set-cookie', 'session-token=BQoS5BmYiKpRCUvzezB4LOLzxTd/wunN9t1XrxHyiE7Edwsoij749jPfPVJOFmW7pXx73pQAFtUKGd0RDYsulRw4+JAoL5IJPzolYDmqSRw2sf6FxK2oggVMcIPcC9aKGoNMc0X5QTrJ9YuafiS/SPHr1o31o6nN5Pb22F5ouFOwX2iOEsCXp6xexNVQi3+ArSFlW56jqNyZIFxE6YsQM8Ibtbd4sErY; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:33 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill 2021-10-14 13:28:33 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=BD95VQJ5BJYYGME8V481:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=BD95VQJ5BJYYGME8V481:0 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=BD95VQJ5BJYYGME8V481:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=BD95VQJ5BJYYGME8V481:0 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.us.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin= 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets=&QmmAyoMU= 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets= 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action https://www.amazon.com/ap/signin -> https://cloud_hostname/auth/alexamedia/proxy/ap/signin 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/mfa/new-otp?ie=UTF8&arb=37185961-56dc-4288-bc33-e12008e38c66 -> https://cloud_hostname/auth/alexamedia/proxy/ap/mfa/new-otp?ie=UTF8&arb=37185961-56dc-4288-bc33-e12008e38c66 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=BD95VQJ5BJYYGME8V481:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:/ap/uedata%3Fstaticb&id=BD95VQJ5BJYYGME8V481:0 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=BD95VQJ5BJYYGME8V481:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:138-2116772-7474850:BD95VQJ5BJYYGME8V481$uedata=s:/ap/uedata%3Fnoscript&id=BD95VQJ5BJYYGME8V481:0 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy 2021-10-14 13:28:33 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url 2021-10-14 13:28:51 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: https://cloud_hostname/auth/alexamedia/proxy/ap/signin for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:51 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'appAction': 'SIGNIN_MFA', 'appActionToken': 'HA7qQvx8U3EPnBe89j2FtdxyfoqJ8j3D', 'openid.return_to': 'ape:aHR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n', 'prevRID': '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brOY7aflMpFN5XSk6F6Y8GI1hf4_OTRQXDebSTZ1A7Siz5eloljALYb7xjZPA_wDR0q1JaTyZ8mR5U9ebEmOu6UaWph9CXFdC9O5J-bU1ff0PazGc5y7SvBRjOzg.tvD7rSjc6gjzPn-6wko16A', 'otpCode': '017084'} 2021-10-14 13:28:51 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Replacing https://cloud_hostname/ with https://www.amazon.com/ in https://cloud_hostname/auth/alexamedia/proxy/ap/signin/138-2116772-7474850 2021-10-14 13:28:51 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/auth/alexamedia/proxy/ap/signin/138-2116772-7474850', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:28:51 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/ap/signin headers: {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/auth/alexamedia/proxy/ap/signin/138-2116772-7474850', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: , , , , ]> 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.helper] POST: redirected from https://www.amazon.com/ap/signin 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/maplanding?openid.assoc_handle=amzn_dp_project_dee_ios&openid.claimed_id=https%3A%2F%2Fwww.amazon.com%2Fap%2Fid%2Famzn1.account.AE6BV6Y6QDIMIMXV7TUF4AT3NOEQ&openid.identity=https%3A%2F%2Fwww.amazon.com%2Fap%2Fid%2Famzn1.account.AE6BV6Y6QDIMIMXV7TUF4AT3NOEQ&openid.mode=id_res&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.op_endpoint=https%3A%2F%2Fwww.amazon.com%2Fap%2Fsignin&openid.response_nonce=2021-10-14T16%3A28%3A51Z6565782773541107441&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Cns.pape%2Cpape.auth_policies%2Cpape.auth_time%2Coa2.access_token%2Coa2.token_type%2Coa2.scope%2Csigned&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.auth_policies=AmazonMultifactor&openid.pape.auth_time=2021-10-14T16%3A28%3A32Z&openid.sig=7zwnx68ZVcQaIgOM9mNrxL3fD1M3tZK3%2BvZvBowemTA%3D&serial=&openid.oa2.access_token=Atna%7CEwICIIRUu5KT7eLgasiGk45Q-auFg8QUQNPOe8qkKGfrbh5T0yL46CTMluK6hNy4xP6k-sHyJWAgnQtUCSBxjEyeEZjv3aaTiABrN_5NB-EX4MChdVLCT2yS-rE9JL2gfk2-DX6J6GtqXAQo5g5hcW5kqyfxtqZ4mRpDO64oEI6dfmSWya4v-jmQhFhM5TmEBBKGisn38Hk4BZS4Mk-yUUQDolcd5VDtrRZ32rnIHEPESAU7ADiZyBWQOp3UAtjeRkCFV0NwXkEdeeqO5jPBvHMkSgpYSxme6PonQkdtTUjtYToelrmijyfU7vsoJwG_36QvJjs&openid.oa2.token_type=bearer&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.scope=device_auth_access& with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "cache-control": "max-age=0", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "upgrade-insecure-requests": "1", "origin": "https://www.amazon.com", "content-type": "application/x-www-form-urlencoded", "sec-fetch-site": "same-origin", "sec-fetch-mode": "navigate", "sec-fetch-user": "?1", "sec-fetch-dest": "document", "referer": "https://www.amazon.com/auth/alexamedia/proxy/ap/signin/138-2116772-7474850", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6", "cookie": {"at-main": "Atza|IwEBIOyD3lIRmuc53Ob77UoFwNYZUkxuCazG9X6lMcEpYc6Fw2LV9PzDm3eGG283hWpX84arprZOPLW5pUi7Fvq2hRIlB5NcIbdkRAEIjdbuflP6Usf7hgVLiRZwgG62HbVwDq8Ck4dn6LptU3jpwvTIItqF8x-XaROShtfSeyphf-z1GEjizqf2GfWP8zY2iSEu3agQp4aL0F6wTMirVeJaGbms4rql_8a5ezCB9noCD0xLzvg2n9Y0EQ8zzF5IMXtz6WOKv30sksbuxqBQeWipE0oS", "lc-main": "en_US", "sess-at-main": "lf+Du6ySOUlhe0L2tQ1Ml+WnuuhNBoaikyJL1ap7LzE=", "session-id": "138-2116772-7474850", "session-id-time": "2264948931l", "session-token": "eI+SWJeEtV0HHqwkpF5Gni1WhLcgYmfexf1SkmPRMebtv6h2F1Z0ElSiCL8etca+Icp0bJm3XeiCzd0UNGIeo5C7IKNZ164d6eNvxwXzEztYOHoofyy52cVFdviJnl9v1+iqX1rA6Tuy7a9ddJyjaBEVDT8HtUvMsf9PMUO54vbePvnMXEZYqXa0GXgq8N54hDqU5JIdd2RC391ioL7cRCYJbd4a9NvpESP0OEuQ/2I=", "ubid-main": "130-6471743-1288547", "x-main": "UfNnfzEWqDu7wlAL79QNgmKv6zBcei5T"}} returned 404:Not Found with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:28:51 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', '0VHJHWT5CBZBQKDKQ1C7'), ('set-cookie', 'session-id=138-2116772-7474850; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:51 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948931l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:51 GMT; Path=/; Secure'), ('set-cookie', 'ubid-main=130-6471743-1288547; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:51 GMT; Path=/; Secure'), ('set-cookie', 'session-token="eI+SWJeEtV0HHqwkpF5Gni1WhLcgYmfexf1SkmPRMebtv6h2F1Z0ElSiCL8etca+Icp0bJm3XeiCzd0UNGIeo5C7IKNZ164d6eNvxwXzEztYOHoofyy52cVFdviJnl9v1+iqX1rA6Tuy7a9ddJyjaBEVDT8HtUvMsf9PMUO54vbePvnMXEZYqXa0GXgq8N54hDqU5JIdd2RC391ioL7cRCYJbd4a9NvpESP0OEuQ/2I="; Version=1; Domain=.amazon.com; Max-Age=31536000; Expires=Fri, 14-Oct-2022 16:28:51 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Proxy data reset. 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Test test_amazon_url triggered 2021-10-14 13:28:52 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Redirecting to callback: https://cloud_hostname/auth/alexamedia/callback?flow_id=015d319b58b44a88bca0ff2dcd6c0066 2021-10-14 13:28:52 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Checking proxy response for ********@*************** - amazon.com.ar 2021-10-14 13:28:52 DEBUG (MainThread) [alexapy.alexalogin] Testing whether logged in to alexa.amazon.com.ar 2021-10-14 13:28:52 DEBUG (MainThread) [alexapy.alexalogin] Cookies: None 2021-10-14 13:28:52 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies: Set-Cookie: ... 2021-10-14 13:28:52 DEBUG (MainThread) [alexapy.alexalogin] Header: {"User-Agent": "AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone", "Accept": "*/*", "Accept-Language": "*", "DNT": "1", "Upgrade-Insecure-Requests": "1"} 2021-10-14 13:28:52 DEBUG (MainThread) [alexapy.alexalogin] Attempting to register with amazon.com.ar 2021-10-14 13:28:53 DEBUG (MainThread) [alexapy.alexalogin] Fallback attempt to register with api.amazon.com 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] auth response with {"requested_extensions": ["device_info", "customer_info"], "cookies": {"website_cookies": [{"Value": "Atza|IwEBIOyD3lIRmuc53Ob77UoFwNYZUkxuCazG9X6lMcEpYc6Fw2LV9PzDm3eGG283hWpX84arprZOPLW5pUi7Fvq2hRIlB5NcIbdkRAEIjdbuflP6Usf7hgVLiRZwgG62HbVwDq8Ck4dn6LptU3jpwvTIItqF8x-XaROShtfSeyphf-z1GEjizqf2GfWP8zY2iSEu3agQp4aL0F6wTMirVeJaGbms4rql_8a5ezCB9noCD0xLzvg2n9Y0EQ8zzF5IMXtz6WOKv30sksbuxqBQeWipE0oS", "Name": "at-main"}, {"Value": "en_US", "Name": "lc-main"}, {"Value": "\"lf+Du6ySOUlhe0L2tQ1Ml+WnuuhNBoaikyJL1ap7LzE=\"", "Name": "sess-at-main"}, {"Value": "138-2116772-7474850", "Name": "session-id"}, {"Value": "2264948931l", "Name": "session-id-time"}, {"Value": "\"eI+SWJeEtV0HHqwkpF5Gni1WhLcgYmfexf1SkmPRMebtv6h2F1Z0ElSiCL8etca+Icp0bJm3XeiCzd0UNGIeo5C7IKNZ164d6eNvxwXzEztYOHoofyy52cVFdviJnl9v1+iqX1rA6Tuy7a9ddJyjaBEVDT8HtUvMsf9PMUO54vbePvnMXEZYqXa0GXgq8N54hDqU5JIdd2RC391ioL7cRCYJbd4a9NvpESP0OEuQ/2I=\"", "Name": "session-token"}, {"Value": "130-6471743-1288547", "Name": "ubid-main"}, {"Value": "UfNnfzEWqDu7wlAL79QNgmKv6zBcei5T", "Name": "x-main"}, {"Value": "Y/dZWnvFuUwaMOP4ZckmImyH1rRKi8MbfnCjcC8sjTLy2Tdacs79eBp7CgVpD7T+89Ls+8SkoxZDJ6wG18TIfNyxV0XkvgXsQ3JxwGWmuaA8n/S/D+mjC1Tk7eUVBDjlXLH58JZgPNVRs85nAyiGBxMPjjCne/5qYognfuWLdqdMScZRfHPBwGP38RBpAU9LFNbRbJHtvruOQoddGNWbEIxGO8JptDkvFazK3WFtQb+IOAByofGYujRMF5bfDyxVUEinQEdPVe7ITC8ILrlEYaBvVSqyzwRKvQn3I5GkK9xGmA/oLdNZ5Vhjdtc5ycyfjJfXZzFgFTnJk69nTivCv1fJ21L526M5QPih71xtaeYCgE4R3KRrAR8XgYy2wC9IRXUQa1oDwt6jN59M05YvQ8x4xPAkD8Vvzw==", "Name": "frc"}, {"Value": "eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==", "Name": "map-md"}], "domain": ".amazon.com.ar"}, "registration_data": {"domain": "Device", "app_version": "2.2.223830.0", "device_type": "A2IVLV5VM2W81", "device_name": "%FIRST_NAME%'s%DUPE_STRATEGY_1ST%Alexa Media Player", "os_version": "11.4.1", "device_serial": "d43a884f21d50932b7ddbfb1bd6715b0", "device_model": "iPhone", "app_name": "Alexa Media Player", "software_version": "1"}, "auth_data": {"access_token": "Atna|EwICIIRUu5KT7eLgasiGk45Q-auFg8QUQNPOe8qkKGfrbh5T0yL46CTMluK6hNy4xP6k-sHyJWAgnQtUCSBxjEyeEZjv3aaTiABrN_5NB-EX4MChdVLCT2yS-rE9JL2gfk2-DX6J6GtqXAQo5g5hcW5kqyfxtqZ4mRpDO64oEI6dfmSWya4v-jmQhFhM5TmEBBKGisn38Hk4BZS4Mk-yUUQDolcd5VDtrRZ32rnIHEPESAU7ADiZyBWQOp3UAtjeRkCFV0NwXkEdeeqO5jPBvHMkSgpYSxme6PonQkdtTUjtYToelrmijyfU7vsoJwG_36QvJjs"}, "user_context_map": {"frc": "Y/dZWnvFuUwaMOP4ZckmImyH1rRKi8MbfnCjcC8sjTLy2Tdacs79eBp7CgVpD7T+89Ls+8SkoxZDJ6wG18TIfNyxV0XkvgXsQ3JxwGWmuaA8n/S/D+mjC1Tk7eUVBDjlXLH58JZgPNVRs85nAyiGBxMPjjCne/5qYognfuWLdqdMScZRfHPBwGP38RBpAU9LFNbRbJHtvruOQoddGNWbEIxGO8JptDkvFazK3WFtQb+IOAByofGYujRMF5bfDyxVUEinQEdPVe7ITC8ILrlEYaBvVSqyzwRKvQn3I5GkK9xGmA/oLdNZ5Vhjdtc5ycyfjJfXZzFgFTnJk69nTivCv1fJ21L526M5QPih71xtaeYCgE4R3KRrAR8XgYy2wC9IRXUQa1oDwt6jN59M05YvQ8x4xPAkD8Vvzw=="}, "requested_token_type": ["bearer", "mac_dms", "website_cookies"]} 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] Attempting to register with amazon.com 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] auth response with {"requested_extensions": ["device_info", "customer_info"], "cookies": {"website_cookies": [{"Value": "Atza|IwEBIOyD3lIRmuc53Ob77UoFwNYZUkxuCazG9X6lMcEpYc6Fw2LV9PzDm3eGG283hWpX84arprZOPLW5pUi7Fvq2hRIlB5NcIbdkRAEIjdbuflP6Usf7hgVLiRZwgG62HbVwDq8Ck4dn6LptU3jpwvTIItqF8x-XaROShtfSeyphf-z1GEjizqf2GfWP8zY2iSEu3agQp4aL0F6wTMirVeJaGbms4rql_8a5ezCB9noCD0xLzvg2n9Y0EQ8zzF5IMXtz6WOKv30sksbuxqBQeWipE0oS", "Name": "at-main"}, {"Value": "en_US", "Name": "lc-main"}, {"Value": "\"lf+Du6ySOUlhe0L2tQ1Ml+WnuuhNBoaikyJL1ap7LzE=\"", "Name": "sess-at-main"}, {"Value": "138-2116772-7474850", "Name": "session-id"}, {"Value": "2264948931l", "Name": "session-id-time"}, {"Value": "\"eI+SWJeEtV0HHqwkpF5Gni1WhLcgYmfexf1SkmPRMebtv6h2F1Z0ElSiCL8etca+Icp0bJm3XeiCzd0UNGIeo5C7IKNZ164d6eNvxwXzEztYOHoofyy52cVFdviJnl9v1+iqX1rA6Tuy7a9ddJyjaBEVDT8HtUvMsf9PMUO54vbePvnMXEZYqXa0GXgq8N54hDqU5JIdd2RC391ioL7cRCYJbd4a9NvpESP0OEuQ/2I=\"", "Name": "session-token"}, {"Value": "130-6471743-1288547", "Name": "ubid-main"}, {"Value": "UfNnfzEWqDu7wlAL79QNgmKv6zBcei5T", "Name": "x-main"}, {"Value": "Y/dZWnvFuUwaMOP4ZckmImyH1rRKi8MbfnCjcC8sjTLy2Tdacs79eBp7CgVpD7T+89Ls+8SkoxZDJ6wG18TIfNyxV0XkvgXsQ3JxwGWmuaA8n/S/D+mjC1Tk7eUVBDjlXLH58JZgPNVRs85nAyiGBxMPjjCne/5qYognfuWLdqdMScZRfHPBwGP38RBpAU9LFNbRbJHtvruOQoddGNWbEIxGO8JptDkvFazK3WFtQb+IOAByofGYujRMF5bfDyxVUEinQEdPVe7ITC8ILrlEYaBvVSqyzwRKvQn3I5GkK9xGmA/oLdNZ5Vhjdtc5ycyfjJfXZzFgFTnJk69nTivCv1fJ21L526M5QPih71xtaeYCgE4R3KRrAR8XgYy2wC9IRXUQa1oDwt6jN59M05YvQ8x4xPAkD8Vvzw==", "Name": "frc"}, {"Value": "eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==", "Name": "map-md"}], "domain": ".amazon.com"}, "registration_data": {"domain": "Device", "app_version": "2.2.223830.0", "device_type": "A2IVLV5VM2W81", "device_name": "%FIRST_NAME%'s%DUPE_STRATEGY_1ST%Alexa Media Player", "os_version": "11.4.1", "device_serial": "d43a884f21d50932b7ddbfb1bd6715b0", "device_model": "iPhone", "app_name": "Alexa Media Player", "software_version": "1"}, "auth_data": {"access_token": "Atna|EwICIIRUu5KT7eLgasiGk45Q-auFg8QUQNPOe8qkKGfrbh5T0yL46CTMluK6hNy4xP6k-sHyJWAgnQtUCSBxjEyeEZjv3aaTiABrN_5NB-EX4MChdVLCT2yS-rE9JL2gfk2-DX6J6GtqXAQo5g5hcW5kqyfxtqZ4mRpDO64oEI6dfmSWya4v-jmQhFhM5TmEBBKGisn38Hk4BZS4Mk-yUUQDolcd5VDtrRZ32rnIHEPESAU7ADiZyBWQOp3UAtjeRkCFV0NwXkEdeeqO5jPBvHMkSgpYSxme6PonQkdtTUjtYToelrmijyfU7vsoJwG_36QvJjs"}, "user_context_map": {"frc": "Y/dZWnvFuUwaMOP4ZckmImyH1rRKi8MbfnCjcC8sjTLy2Tdacs79eBp7CgVpD7T+89Ls+8SkoxZDJ6wG18TIfNyxV0XkvgXsQ3JxwGWmuaA8n/S/D+mjC1Tk7eUVBDjlXLH58JZgPNVRs85nAyiGBxMPjjCne/5qYognfuWLdqdMScZRfHPBwGP38RBpAU9LFNbRbJHtvruOQoddGNWbEIxGO8JptDkvFazK3WFtQb+IOAByofGYujRMF5bfDyxVUEinQEdPVe7ITC8ILrlEYaBvVSqyzwRKvQn3I5GkK9xGmA/oLdNZ5Vhjdtc5ycyfjJfXZzFgFTnJk69nTivCv1fJ21L526M5QPih71xtaeYCgE4R3KRrAR8XgYy2wC9IRXUQa1oDwt6jN59M05YvQ8x4xPAkD8Vvzw=="}, "requested_token_type": ["bearer", "mac_dms", "website_cookies"]} 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] Successfully registered Gabriel's Alexa Media Player device with Amazon 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] Received registration data: {"success": {"extensions": {"device_info": {"device_name": "Gabriel's Alexa Media Player", "device_serial_number": "d43a884f21d50932b7ddbfb1bd6715b0", "device_type": "A2IVLV5VM2W81"}, "customer_info": {"account_pool": "Amazon", "user_id": "amzn1.account.AHSUFUMQJ66MFBGGJ6LWHEGP35RQ", "home_region": "NA", "name": "Gabriel R Maffia", "given_name": "Gabriel"}}, "tokens": {"website_cookies": [{"Path": "/", "Secure": "true", "Value": "138-2116772-7474850", "Expires": "9 Oct 2041 16:28:54 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "session-id"}, {"Path": "/", "Secure": "true", "Value": "130-6471743-1288547", "Expires": "9 Oct 2041 16:28:54 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "ubid-main"}, {"Path": "/", "Secure": "true", "Value": "\"Eh14DslsdbE6Ht7x9IPpFGlmslw2jQcG\"", "Expires": "9 Oct 2041 16:28:54 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "x-main"}, {"Path": "/", "Secure": "true", "Value": "\"Atza|IwEBIGQLMHQ70Nbz_SWSP9VO6BMUzbQOmKS8JXHjPBvIMy389I6RnDjqFUQpksELCzDCr5jpMlVK8MJrpG6Et8urA0-aM3rKIMJGK-skeaubNS5tON_7DUi7X2OjAgvUjvfd9q8WszxRePUn9_QEkQxChjREo2UU-EP3JmAIMqh7jy5EvKQ392D_fXes1pVJz7RHf5sfHZxiiZwqYtgGZAdXqMhS0sc0e6-_LqV6oPhaOLXos-74WRJPfxUNiKAQGhXw0zs41zgEY0bqwn3VulSDGQx-bD_MpyBdgyQfQQ1H2Ym2al6J5cfpyFZ3LaWYh50i0uI5sWalIeyTfDe83x6JXRu_4pjG8NdHa8j5rNxScsS5ldEJYfe6c-zrwMSIGKMAL3M\"", "Expires": "15 Oct 2021 16:28:54 GMT", "Domain": ".amazon.com", "HttpOnly": "true", "Name": "at-main"}, {"Path": "/", "Secure": "true", "Value": "\"v1YMcbKtF4rhCNVqlNElT9s+V+PznpD/rMGQhxbHl80=\"", "Expires": "15 Oct 2021 16:28:54 GMT", "Domain": ".amazon.com", "HttpOnly": "true", "Name": "sess-at-main"}], "mac_dms": {"device_private_key": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDQaYVuQAWdFwZaJfexrKb/rD+pePBoqdRTvMrdXZNYp+y9UePWbaSuXxGCu4ffevggKHVQv/jsA9PdIT+C0vhtinJ+OpWbKvhp0tx1YxjNEZYeAmTIkrvLOCD6L15AvLmA7OhVpwFHqr4n+1gLvAosGiJETyvuFdoFbBO3C098GS3jewIZL/WyWJ/7MJDpGDR+csHNAcsM0XGBd+37kqLh63cFwvehdxB72J6lOF/DYV5uuAsx0/pW3nURg2ayQM+wBxK7mLgGQlfNSzqmOb9haJCPB6JGhuDpQHJ4RV9eAlf4UMkDTlyDKjsZSkV8oNz7UH1i75SjQP7V26zo4gHdAgMBAAECggEAeTFDdC8qlIT1HqsBdIJvwjGJ+6TmOBa578/TMBLgQie0VQsvsFul7fg+mIUwp9Y8P4cHYWOg/q3jH63b3tmLuTdPCPRMVyUPu4nwxRpRK77USrMdpD0fkzcahiHRb1fPj5c0K8qnxeMWHO3d70TzrV2tG4fmhdaTJ6AHfuPG3uRAomvorlNJmNYMGTlibowNbvybq6I5keuVxKaJnPyZorFFq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zHYnV11cUhmuHa/bWHKpfmh7bR565tvcTU5ZLkay8abifFbTrG4M4Et6Q5nn5OgJ/DICWH178jsHWGXPhHAA0Y7xM1G35sbjKbaEL3LwY+PVEOVsarW2diqN54dEfb1AnIlPSbDlsGN8Ot3IWWZiLUsFvBO3TCUFz/hrx1yy7wguW293jNxO2xBoOLBKLkOEIX+cGg//giaGvJzD5lcQlda+6no7XkFXSxxz9UtUzMqVyS4JZiTaeh5zJz7A==}{iv:26HooYZU5JTEAFdUWlQC0A==}{name:QURQVG9rZW5FbmNyeXB0aW9uS2V5}{serial:Mg==}"}, "bearer": {"access_token": "Atna|EwICIDr6lmeXkFG_nEbgyQckj5SWgqmNehFWyjhjdGxloNe61CgVQqyIiFqupDM9uyWgbhHKWnMfy22BaJttAaNdaaJuwyWmgIZERdtH3F_JKIHgbPxj4lOK6knHfvBcvuZ-4jcsA9ydCquxg_7fxK4YMcd7W5cc92YfF6iBAAJ446-Wc5raABmyTcU823lIPai12TVX0Aq2z5MYrxnvQSYE25lM0-IMAYqgAT8l4YxpFtt1tmp3gFBnsyVAUKau-rl4bBCTbJg_bMCc7MAiM9rYFHyz", "refresh_token": "Atnr|EwICIFa6lnInQMb5I5rFfjekeRseKO51i1nm5U44x6hzWAgnr2eVp8ugMt7W53W9nfCkZWtzHC9O9dauZbugcY5sHCJklQ-BS5FrE_ToX4nftQNInmBvuzm0x81FVPBNj3rNqRN2N0oQ5Bwz2U0huPlULj6vCEk9sTsp8UdNf1knjjgxCqL5iE-hum1AxI5IZzF1NMvIYrGT8WdOs1F0SxyU61z7cM7cucqQMtmEoqVq92mc5M49jiTIVzHkkv4DyFQ2v0rhj7qIDA90cHxbTWojDYMcIKPLqWqKF_AR74Fw3Jw2533CbRar-DU8fomACgBeB5Jq0bJ3_Ap47i8Kj3yg9sS_", "expires_in": "3600"}}, "customer_id": "amzn1.account.AHSUFUMQJ66MFBGGJ6LWHEGP35RQ"}} 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] New access token received which expires at 2021-10-14 14:28:54.689117 in 0:59:59.999953 2021-10-14 13:28:54 DEBUG (MainThread) [alexapy.alexalogin] Fallback attempt to exchange tokens with www.amazon.com 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Failed to exchange cookies for refresh token: 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Attempting to discover CSRF token 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:28:55 DEBUG (MainThread) [alexapy.alexalogin] No csrf token found 2021-10-14 13:28:56 DEBUG (MainThread) [alexapy.alexalogin] GET: redirected from https://alexa.amazon.com/api/bootstrap 2021-10-14 13:28:56 DEBUG (MainThread) [alexapy.alexalogin] GET: https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0& with returned 200:OK with response 2021-10-14 13:28:56 DEBUG (MainThread) [alexapy.alexalogin] Not logged in: An exception of type ContentTypeError occurred. Arguments: (RequestInfo(url=URL('https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0&'), method='GET', headers=, real_url=URL('https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0&')), ( ,)) 2021-10-14 13:28:56 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Found flow_id; adding 127.0.0.1 to known_ips for 300 seconds 2021-10-14 13:28:56 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received get: https://cloud_hostname/auth/alexamedia/proxy?config_flow_id=015d319b58b44a88bca0ff2dcd6c0066&callback_url=https://cloud_hostname/auth/alexamedia/callback?flow_id%3D015d319b58b44a88bca0ff2dcd6c0066 for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:56 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Starting auth capture proxy for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:28:56 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Upgrade-Insecure-Requests': '1', 'sec-ch-ua-mobile': '?0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'sec-ch-ua-platform': '"Windows"', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:28:56 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting get to https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US headers: {'Connection': 'keep-alive', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Upgrade-Insecure-Requests': '1', 'sec-ch-ua-mobile': '?0', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'sec-ch-ua-platform': '"Windows"', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'same-origin', 'Sec-Fetch-Dest': 'empty', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "upgrade-insecure-requests": "1", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-site": "same-origin", "sec-fetch-mode": "same-origin", "sec-fetch-dest": "empty", "referer": "https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6"} returned 200:OK with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:28:57 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', 'ZCH1MJ7ZCX8A6E3B5DQP'), ('set-cookie', 'ap-fid=""; Domain=.amazon.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/ap/; Secure'), ('set-cookie', 'session-id=130-1844049-4015735; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:57 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948937l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:57 GMT; Path=/; Secure'), ('set-cookie', 'lc-main=en_US; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:28:57 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('pragma', 'No-cache'), ('cache-control', 'max-age=0, no-cache, no-store, must-revalidate'), ('expires', 'Thu, 01 Jan 1970 00:00:00 GMT'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill 2021-10-14 13:28:57 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:28:57 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href -> https://cloud_hostname/auth/alexamedia/proxy 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /conditions_of_use_mobile?pop-up=1 -> https://cloud_hostname/auth/alexamedia/proxy/conditions_of_use_mobile?pop-up=1 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /privacy_policy_mobile -> https://cloud_hostname/auth/alexamedia/proxy/privacy_policy_mobile 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ZCH1MJ7ZCX8A6E3B5DQP:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ZCH1MJ7ZCX8A6E3B5DQP:0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ZCH1MJ7ZCX8A6E3B5DQP:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ZCH1MJ7ZCX8A6E3B5DQP:0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.us.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin= 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets=&QmmAyoMU= 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets= 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action https://www.amazon.com/ap/signin/130-1844049-4015735 -> https://cloud_hostname/auth/alexamedia/proxy/ap/signin/130-1844049-4015735 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://cloud_hostname/auth/alexamedia/proxy/ap/forgotpassword?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 -> https://cloud_hostname/auth/alexamedia/proxy/ap/register?showRememberMe=true&openid.pape.max_auth_age=0&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&accountStatusPolicy=P1&language=en_US&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ZCH1MJ7ZCX8A6E3B5DQP&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=token&openid.mode=checkid_setup&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns=http://specs.openid.net/auth/2.0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ZCH1MJ7ZCX8A6E3B5DQP:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:/ap/uedata%3Fstaticb&id=ZCH1MJ7ZCX8A6E3B5DQP:0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ZCH1MJ7ZCX8A6E3B5DQP:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:ZCH1MJ7ZCX8A6E3B5DQP$uedata=s:/ap/uedata%3Fnoscript&id=ZCH1MJ7ZCX8A6E3B5DQP:0 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy 2021-10-14 13:28:57 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url 2021-10-14 13:29:00 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: https://cloud_hostname/auth/alexamedia/proxy/ap/signin/130-1844049-4015735 for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:29:00 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'appActionToken': 'uHUN3qySyFnPV2uBdUXk0Y5JK70j3D', 'appAction': 'SIGNIN', 'openid.return_to': 'ape:aHR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n', 'prevRID': 'ape:WkNIMU1KN1pDWDhBNkUzQjVEUVA=', 'workflowState': 'eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.NCqnQoHYZOy0OhKYr9JXwEOREcJkDkGk4zMDd1obqgAGayTnYqYxdQ.YB1Hd6Tgaezl10ZM.f_2o_bkVH1xcXgihu4B_1Ye61vzpzLEiPD2qZuPJWul94GSXoW8kmmsHUPw54oOZkafxi8XqD0p3cnxF9jR2ZbxQevOkQlrmimMrl45CcYHe6OQ5rdB7LQ_K7pPvbSMZDmCTfeT9Xk6D6mJ3tySLdo4Mza1bzx3ceaGEL3wfQEtzA3WoCOEIGd5ogX5kuTzYq__I92X3QIbm1M8KddTqBEl7tmfpQymHWelD1-gV64wxsUx0J9SK62Mtux1oOIATxR22d9B-coG3HGdp2KrJcormS749HAFedurpF00Vg0C_umIupJAc_eQhEUT5oYr0ChmIJ3Pil3i1lAHX68XK8MKbu8Fs3ZDAob49_RVtCz70JupfudJDlgJrPplGAf0kHI_DQWUFlyjehyooIEhSmCLYqGvEq_F5Pi25UqwGXflNRywiohf_AGMR7A8El1x4s53gbd5SerHvc4w7Q3pgUiu5hd__ybu4Obo2dcOZuaVpavTdaSGVPM8DA02MCYrZrxdRQKDF5Ist2jFwHiCs6ZzsPUsM7pE.QJr3YuMItTq0YbUpQqVpZQ', 'email': '********@***************', 'encryptedPwd': 'AYAAFEVbBDGXvbJM4dtBsbfzFWQAAAABAAZzaTptZDUAIDU2ZDE0ZWRjZThlMmNiNmM2ODQyYzU5ZGRhZWU0MjZlAQBUks6OpXQA0ZzJA7Dy1cU/RyGa3kEnzDE7gBL8SUJAjSuzULp+0V+fZ4Nc9p9xynSMYnx9oP9bG7QROsrtiqGO00LaaichqK9C2uGFIw/v+RB8iTOqSjQzov4CEmoeV5eu+mldD6jtb6fCDeMaopo4t5hH1KUTBSF9TeE5+f1rC6Kjum0z2eQLWj5eBKvDVH51CeNl8h3q1gDe60IFcYMhWP2HaQ3jf0+6WEh+275CN1tX8NZzynD0Xklj0VOhDE9ysNJoUDAa4+ftfmwfkI75jgXE6eRZI7V6b8p2Wz5SKvqUt3BUtYu+oUcpnU8wPTqEjUSh0Fpz42Z3HfXS5tD8AgAAAAAMAAAACgAAAAAAAAAAAAAAAC4M0FxZxtSfZxsDKoiJiIz/////AAAAAQAAAAAAAAAAAAAAAQAAAAl/2jm0j5vCXve5FLWJLNmVYdQ/tw+gK2B6', 'showPasswordChecked': 'false', 'encryptedPasswordExpected': '', 'metadata1': 'true'} 2021-10-14 13:29:00 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:29:00 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/ap/signin/130-1844049-4015735 headers: {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: , , ]> 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] POST: redirected from https://www.amazon.com/ap/signin/130-1844049-4015735 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/mfa?ie=UTF8&arb=7181e719-f1fb-4634-a7c8-b60e77ce8ee0&mfa.arb.value=7181e719-f1fb-4634-a7c8-b60e77ce8ee0&mfa.arb.key=arb with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "cache-control": "max-age=0", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "upgrade-insecure-requests": "1", "origin": "https://www.amazon.com", "content-type": "application/x-www-form-urlencoded", "sec-fetch-site": "same-origin", "sec-fetch-mode": "navigate", "sec-fetch-user": "?1", "sec-fetch-dest": "document", "referer": "https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6", "cookie": {"lc-main": "en_US", "session-id": "130-1844049-4015735", "session-id-time": "2264948940l", "ubid-main": "131-1027255-3266204"}} returned 200:OK with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:29:00 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', 'MHB1N19AYP2KXJXBTTE9'), ('set-cookie', 'session-id=130-1844049-4015735; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:00 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948940l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:00 GMT; Path=/; Secure'), ('set-cookie', 'ubid-main=131-1027255-3266204; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:00 GMT; Path=/; Secure'), ('set-cookie', 'session-token=32u8n1iQoZrFPQfH8EZZ2weU/IX006WJ0sF32vzVwzRhEvtvgRm0zuvr5jByjU8xx4L/j3rC9c68L5m2hNaYLHNIBEcdoXWd44PyiNv7aCAQk4kcdFu8dT2yWwetebxiiV1W6rSsvPWpnj0cWW5Ra6cKeXwDfrrJouDa2w9iyvUaR1uwvLC+ThQxxatAzAGuaJ1jh7qjMkMkGZtAd7XGZJbojXl5rDCj; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:00 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill 2021-10-14 13:29:01 DEBUG (MainThread) [alexapy.alexaproxy] Filled 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=MHB1N19AYP2KXJXBTTE9:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=MHB1N19AYP2KXJXBTTE9:0 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=MHB1N19AYP2KXJXBTTE9:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=MHB1N19AYP2KXJXBTTE9:0 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.us.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71wSZQ4zdGL.css?AUIClients/AuthenticationPortalAlexaSkin= 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,41K9WJ9wk7L.css_.css?AUIClients/AuthenticationPortalAssets=&QmmAyoMU= 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/11vbcpUoDhL.css?AUIClients/CVFAssets= 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action https://www.amazon.com/ap/signin -> https://cloud_hostname/auth/alexamedia/proxy/ap/signin 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href https://www.amazon.com/ap/mfa/new-otp?ie=UTF8&arb=b0bd7573-f029-4adf-b663-32f64a7f9f04 -> https://cloud_hostname/auth/alexamedia/proxy/ap/mfa/new-otp?ie=UTF8&arb=b0bd7573-f029-4adf-b663-32f64a7f9f04 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=MHB1N19AYP2KXJXBTTE9:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:/ap/uedata%3Fstaticb&id=MHB1N19AYP2KXJXBTTE9:0 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=MHB1N19AYP2KXJXBTTE9:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:130-1844049-4015735:MHB1N19AYP2KXJXBTTE9$uedata=s:/ap/uedata%3Fnoscript&id=MHB1N19AYP2KXJXBTTE9:0 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy 2021-10-14 13:29:01 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url 2021-10-14 13:29:07 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: https://cloud_hostname/auth/alexamedia/proxy/ap/signin for https://www.amazon.com/ap/signin?openid.return_to=https://www.amazon.com/ap/maplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns.oa2=http://www.amazon.com/ap/ext/oauth/2&openid.oa2.client_id=device:623663343639343131336634653339306230366538363564616164323835333823413249564c5635564d32573831&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=token&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&language=en_US 2021-10-14 13:29:07 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'appAction': 'SIGNIN_MFA', 'appActionToken': 'kk3rBOAj2FwqfkppxEsj2FzeUPt7fj2BAj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qcDR-5NBd2dz11SZoubzvS6_EW2N26Yt_NW3vVHccRruLckWWs8QTxR0B2iZdHWxjAcsFsb0apEJv3kQtHHla63zu18R9QIZAcrDic6VaUzpo9KFi5twKJrB71X9aVbzVO_EYCrE0a2q_vnf6t3iFZYGeF7qSgY-wXtlzcK8HJ3fC85dpkgeJMJSP67LfKg.tLNJBJPxceRhmrmKnQ-Rbg', 'otpCode': '418023'} 2021-10-14 13:29:07 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Replacing https://cloud_hostname/ with https://www.amazon.com/ in https://cloud_hostname/auth/alexamedia/proxy/ap/signin/130-1844049-4015735 2021-10-14 13:29:07 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/auth/alexamedia/proxy/ap/signin/130-1844049-4015735', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} 2021-10-14 13:29:07 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/ap/signin headers: {'Connection': 'keep-alive', 'Cache-Control': 'max-age=0', 'sec-ch-ua': '"Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'Upgrade-Insecure-Requests': '1', 'Origin': 'https://www.amazon.com', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'navigate', 'Sec-Fetch-User': '?1', 'Sec-Fetch-Dest': 'document', 'Referer': 'https://www.amazon.com/auth/alexamedia/proxy/ap/signin/130-1844049-4015735', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6'} cookies: , , , , ]> 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.helper] POST: redirected from https://www.amazon.com/ap/signin 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.helper] GET: https://www.amazon.com/ap/maplanding?openid.assoc_handle=amzn_dp_project_dee_ios&openid.claimed_id=https%3A%2F%2Fwww.amazon.com%2Fap%2Fid%2Famzn1.account.AE6BV6Y6QDIMIMXV7TUF4AT3NOEQ&openid.identity=https%3A%2F%2Fwww.amazon.com%2Fap%2Fid%2Famzn1.account.AE6BV6Y6QDIMIMXV7TUF4AT3NOEQ&openid.mode=id_res&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.op_endpoint=https%3A%2F%2Fwww.amazon.com%2Fap%2Fsignin&openid.response_nonce=2021-10-14T16%3A29%3A07Z-7221381553907462728&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Cns.pape%2Cpape.auth_policies%2Cpape.auth_time%2Coa2.access_token%2Coa2.token_type%2Coa2.scope%2Csigned&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.auth_policies=AmazonMultifactor&openid.pape.auth_time=2021-10-14T16%3A29%3A00Z&openid.sig=M9KVz9DJLROKSznZaYXrRF3LXKYAQwJCSEVQWY02WWI%3D&serial=&openid.oa2.access_token=Atna%7CEwICIFWXHeC-tL08rbI5ccwG0sq7dv4Txapr4Kld_Cls4C2zW8gpWxI-Z67PZeoiGt6tf1NEcAMJ-KbuJ7tZQADyG_LqIQUs5NgMWf8wf0XBNq2eDT1lZTTcuusrFKMAWvqtW_VDgxY3VWL4XKCt-ubouyN1jKeA65vipRZhc1cU_q_Zde4VKQc2oGy2fyaQ3StZGSuR7xFgnFG_0DYmG1XNlA8h0-ESSVDuiaD_Nt3uEVMPQSVQxXFLpEPV8_1-E6wecziOKEQcl4_4Ma9t8ASzbZ4sksBnb0Ah_gOkq2U3eG1A2js7tST7fo8-MMJav-jes6s&openid.oa2.token_type=bearer&openid.ns.oa2=http%3A%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.scope=device_auth_access& with {"host": "www.amazon.com", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "accept-encoding": "gzip, deflate, br", "connection": "keep-alive", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36", "cache-control": "max-age=0", "sec-ch-ua": "\"Chromium\";v=\"94\", \"Google Chrome\";v=\"94\", \";Not A Brand\";v=\"99\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "upgrade-insecure-requests": "1", "origin": "https://www.amazon.com", "content-type": "application/x-www-form-urlencoded", "sec-fetch-site": "same-origin", "sec-fetch-mode": "navigate", "sec-fetch-user": "?1", "sec-fetch-dest": "document", "referer": "https://www.amazon.com/auth/alexamedia/proxy/ap/signin/130-1844049-4015735", "accept-language": "es-AR,es;q=0.9,en-US;q=0.8,en;q=0.7,es-419;q=0.6", "cookie": {"at-main": "Atza|IwEBIEfVGltBRmgSzmgvQF8yFiZ8fBMsucLftX6ioUOVxPfa2AV6cG4pOSME1Fxfcekhz_FhGn0aDv0BWJiftGowOgne3mUe9zNKvnmJ76bsx3zDiE6UFre7yhy5jTTw6DaTQTMWx0_Og8s8123xrWpmorbLU9-8MmnjgippDQPPqs6zQbeIFr3zqfgZPYjqFHpc4LCJp8Wut5UzCJ1CI--jz4y-aiiB_jkT1YdOIKtWb2EDXo3ekTOd66jALSpXg7gnW53Cvz0IzEUOLj_bbmYNrhVhZLbVXFd6znhtWkbtcDVIow", "lc-main": "en_US", "sess-at-main": "zBa0ezKHAlw0swEYP4GNM3227F3GSL6OMa+wFbR1iwE=", "session-id": "130-1844049-4015735", "session-id-time": "2264948947l", "session-token": "Q6VNjqErPpQle+1mwQha3g9Am3BcPw18gRY4lcCEl5qyjof1daE6HphFZVKIl+SEtMmvv5O0VVqlGbSKsZ7GIriLy61L/sh0NYpss1jJUeIbPFv+WPBgnSLGhc1X04TLYCuKF5PdTO9gGXHuR+M6FC/6ZBEhzBnhnYg/vZ9dDTYFB0zRlGbS/5bnEvT4f1he2k9Wg84YiM8wTupIyOWnJPQaCAtacT0m7SBye2z012c=", "ubid-main": "131-1027255-3266204", "x-main": "kQbY4qTgYI2z83A?b@FoKkxIhK0G?zsa"}} returned 404:Not Found with response Headers([('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Thu, 14 Oct 2021 16:29:08 GMT'), ('content-type', 'text/html;charset=UTF-8'), ('permissions-policy', 'interest-cohort=()'), ('x-amz-rid', 'EJKKH3MH8BT682X6FB43'), ('set-cookie', 'session-id=130-1844049-4015735; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:08 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2264948948l; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:08 GMT; Path=/; Secure'), ('set-cookie', 'ubid-main=131-1027255-3266204; Domain=.amazon.com; Expires=Fri, 14-Oct-2022 16:29:08 GMT; Path=/; Secure'), ('set-cookie', 'session-token="Q6VNjqErPpQle+1mwQha3g9Am3BcPw18gRY4lcCEl5qyjof1daE6HphFZVKIl+SEtMmvv5O0VVqlGbSKsZ7GIriLy61L/sh0NYpss1jJUeIbPFv+WPBgnSLGhc1X04TLYCuKF5PdTO9gGXHuR+M6FC/6ZBEhzBnhnYg/vZ9dDTYFB0zRlGbS/5bnEvT4f1he2k9Wg84YiM8wTupIyOWnJPQaCAtacT0m7SBye2z012c="; Version=1; Domain=.amazon.com; Max-Age=31536000; Expires=Fri, 14-Oct-2022 16:29:08 GMT; Path=/; Secure'), ('x-xss-protection', '1'), ('x-content-type-options', 'nosniff'), ('x-ua-compatible', 'IE=edge'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('vary', 'Content-Type,Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent'), ('p3p', 'policyref="http://www.amazon.com/w3c/p3p.xml",CP="CAO DSP LAW CUR ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA HEA PRE LOC GOV OTC "'), ('x-frame-options', 'SAMEORIGIN'), ('transfer-encoding', 'chunked')]) 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Proxy data reset. 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Test test_amazon_url triggered 2021-10-14 13:29:08 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Redirecting to callback: https://cloud_hostname/auth/alexamedia/callback?flow_id=015d319b58b44a88bca0ff2dcd6c0066 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Testing whether logged in to alexa.amazon.com.ar 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Cookies: None 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Session Cookies: Set-Cookie: at-main=Atza|IwEBIEfVGltBRmgSzmgvQF8yFiZ8fBMsucLftX6ioUOVxPfa2AV6cG4pOSME1Fxfcekhz_FhGn0aDv0BWJiftGowOgne3mUe9zNKvnmJ76bsx3zDiE6UFre7yhy5jTTw6DaTQTMWx0_Og8s8123xrWpmorbLU9-8MmnjgippDQPPqs6zQbeIFr3zqfgZPYjqFHpc4LCJp8Wut5UzCJ1CI--jz4y-aiiB_jkT1YdOIKtWb2EDXo3ekTOd66jALSpXg7gnW53Cvz0IzEUOLj_bbmYNrhVhZLbVXFd6znhtWkbtcDVIow; Path=/ Set-Cookie: lc-main=en_US; Path=/ Set-Cookie: sess-at-main="\"zBa0ezKHAlw0swEYP4GNM3227F3GSL6OMa+wFbR1iwE=\""; Path=/ Set-Cookie: session-id=130-1844049-4015735; Path=/ Set-Cookie: session-id-time=2264948948l; Path=/ Set-Cookie: session-token="\"Q6VNjqErPpQle+1mwQha3g9Am3BcPw18gRY4lcCEl5qyjof1daE6HphFZVKIl+SEtMmvv5O0VVqlGbSKsZ7GIriLy61L/sh0NYpss1jJUeIbPFv+WPBgnSLGhc1X04TLYCuKF5PdTO9gGXHuR+M6FC/6ZBEhzBnhnYg/vZ9dDTYFB0zRlGbS/5bnEvT4f1he2k9Wg84YiM8wTupIyOWnJPQaCAtacT0m7SBye2z012c=\""; Path=/ Set-Cookie: ubid-main=131-1027255-3266204; Path=/ Set-Cookie: x-main="\"kQbY4qTgYI2z83A?b@FoKkxIhK0G?zsa\""; Path=/ Set-Cookie: session-id=138-2116772-7474850; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:28:55 GMT; Path=/; Secure Set-Cookie: session-id-time=2264948935l; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:28:55 GMT; Path=/; Secure Set-Cookie: ubid-main=130-6471743-1288547; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:28:55 GMT; Path=/; Secure Set-Cookie: session-token="V0CL+74tro3hLUbKPZPCrt/h9ER6wNeliTUabHhZsrPqI1pkhY2wozMMiqR6ugpehhbbG1o9eQGfrbI3QFrmHj5hg6sn3BOrqIGeePRsOXU1wTlSuLq8Jl26VUnFKAx79D6TPF26AHXSYKBNfaWbVFwW4ZU/MH0KaNPnjUTHiOm3hj81g72eQkfTOxTijpUxXb+YISqch/JjdtgFUMkjPIktuilToat7AX5iY3THV5U="; Domain=amazon.com; expires=Fri, 14-Oct-2022 16:28:55 GMT; Max-Age=31536000; Path=/; Secure; Version=1 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Header: {"User-Agent": "AmazonWebView/Alexa Media Player/2.2.223830.0/iOS/11.4.1/iPhone", "Accept": "*/*", "Accept-Language": "*", "DNT": "1", "Upgrade-Insecure-Requests": "1", "Referer": "https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0&", "authority": "www.amazon.com.ar"} 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Attempting to register with amazon.com.ar 2021-10-14 13:29:08 DEBUG (MainThread) [alexapy.alexalogin] Fallback attempt to register with api.amazon.com 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] auth response with {"requested_extensions": ["device_info", "customer_info"], "cookies": {"website_cookies": [{"Value": "Atza|IwEBIEfVGltBRmgSzmgvQF8yFiZ8fBMsucLftX6ioUOVxPfa2AV6cG4pOSME1Fxfcekhz_FhGn0aDv0BWJiftGowOgne3mUe9zNKvnmJ76bsx3zDiE6UFre7yhy5jTTw6DaTQTMWx0_Og8s8123xrWpmorbLU9-8MmnjgippDQPPqs6zQbeIFr3zqfgZPYjqFHpc4LCJp8Wut5UzCJ1CI--jz4y-aiiB_jkT1YdOIKtWb2EDXo3ekTOd66jALSpXg7gnW53Cvz0IzEUOLj_bbmYNrhVhZLbVXFd6znhtWkbtcDVIow", "Name": "at-main"}, {"Value": "en_US", "Name": "lc-main"}, {"Value": "\"zBa0ezKHAlw0swEYP4GNM3227F3GSL6OMa+wFbR1iwE=\"", "Name": "sess-at-main"}, {"Value": "130-1844049-4015735", "Name": "session-id"}, {"Value": "2264948948l", "Name": "session-id-time"}, {"Value": "\"Q6VNjqErPpQle+1mwQha3g9Am3BcPw18gRY4lcCEl5qyjof1daE6HphFZVKIl+SEtMmvv5O0VVqlGbSKsZ7GIriLy61L/sh0NYpss1jJUeIbPFv+WPBgnSLGhc1X04TLYCuKF5PdTO9gGXHuR+M6FC/6ZBEhzBnhnYg/vZ9dDTYFB0zRlGbS/5bnEvT4f1he2k9Wg84YiM8wTupIyOWnJPQaCAtacT0m7SBye2z012c=\"", "Name": "session-token"}, {"Value": "131-1027255-3266204", "Name": "ubid-main"}, {"Value": "\"kQbY4qTgYI2z83A?b@FoKkxIhK0G?zsa\"", "Name": "x-main"}, {"Value": "8+bblne5+SkLaocvbx4zg2dom/ahSqLLfQK2qnf76UedQVci1jlJp6NmrGbsy24jxRE57RpenP5jWAeLgIkP8YXEBhaUtgO06KXNYuIM/voZqpfYQtC2IQcgo1SkKdb/eHel+vDxG0Z7NWZs/PaZUlh61T+jRIhPkcUcA/pDyQ/zB87HsvZ5ZaH2ZO/7RcWMUB+VKy+R+SeVDCD1e1wHMz2DX/PDwbKcP5MPrC8EjrGd5chkPpMCYIG7W5GN5m+zZrzN9OhvQFoQUyHvbUvYANcI4VFFdZ4b03YtFnbzJXBI+oxb0wNRVNc07CQRdJ9GapfidtM7JSZ8djHwrYR+IZshK/aTVZFNd9SJIc4MBqUamz43V+HIBg+CpuXG2WxEgyveGk1VIDif0Sp1gG/+ITHzQ2ATXCdr7Q==", "Name": "frc"}, {"Value": "eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==", "Name": "map-md"}], "domain": ".amazon.com.ar"}, "registration_data": {"domain": "Device", "app_version": "2.2.223830.0", "device_type": "A2IVLV5VM2W81", "device_name": "%FIRST_NAME%'s%DUPE_STRATEGY_1ST%Alexa Media Player", "os_version": "11.4.1", "device_serial": "d43a884f21d50932b7ddbfb1bd6715b0", "device_model": "iPhone", "app_name": "Alexa Media Player", "software_version": "1"}, "auth_data": {"access_token": "Atna|EwICIFWXHeC-tL08rbI5ccwG0sq7dv4Txapr4Kld_Cls4C2zW8gpWxI-Z67PZeoiGt6tf1NEcAMJ-KbuJ7tZQADyG_LqIQUs5NgMWf8wf0XBNq2eDT1lZTTcuusrFKMAWvqtW_VDgxY3VWL4XKCt-ubouyN1jKeA65vipRZhc1cU_q_Zde4VKQc2oGy2fyaQ3StZGSuR7xFgnFG_0DYmG1XNlA8h0-ESSVDuiaD_Nt3uEVMPQSVQxXFLpEPV8_1-E6wecziOKEQcl4_4Ma9t8ASzbZ4sksBnb0Ah_gOkq2U3eG1A2js7tST7fo8-MMJav-jes6s"}, "user_context_map": {"frc": "8+bblne5+SkLaocvbx4zg2dom/ahSqLLfQK2qnf76UedQVci1jlJp6NmrGbsy24jxRE57RpenP5jWAeLgIkP8YXEBhaUtgO06KXNYuIM/voZqpfYQtC2IQcgo1SkKdb/eHel+vDxG0Z7NWZs/PaZUlh61T+jRIhPkcUcA/pDyQ/zB87HsvZ5ZaH2ZO/7RcWMUB+VKy+R+SeVDCD1e1wHMz2DX/PDwbKcP5MPrC8EjrGd5chkPpMCYIG7W5GN5m+zZrzN9OhvQFoQUyHvbUvYANcI4VFFdZ4b03YtFnbzJXBI+oxb0wNRVNc07CQRdJ9GapfidtM7JSZ8djHwrYR+IZshK/aTVZFNd9SJIc4MBqUamz43V+HIBg+CpuXG2WxEgyveGk1VIDif0Sp1gG/+ITHzQ2ATXCdr7Q=="}, "requested_token_type": ["bearer", "mac_dms", "website_cookies"]} 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] Attempting to register with amazon.com 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] auth response with {"requested_extensions": ["device_info", "customer_info"], "cookies": {"website_cookies": [{"Value": "Atza|IwEBIEfVGltBRmgSzmgvQF8yFiZ8fBMsucLftX6ioUOVxPfa2AV6cG4pOSME1Fxfcekhz_FhGn0aDv0BWJiftGowOgne3mUe9zNKvnmJ76bsx3zDiE6UFre7yhy5jTTw6DaTQTMWx0_Og8s8123xrWpmorbLU9-8MmnjgippDQPPqs6zQbeIFr3zqfgZPYjqFHpc4LCJp8Wut5UzCJ1CI--jz4y-aiiB_jkT1YdOIKtWb2EDXo3ekTOd66jALSpXg7gnW53Cvz0IzEUOLj_bbmYNrhVhZLbVXFd6znhtWkbtcDVIow", "Name": "at-main"}, {"Value": "en_US", "Name": "lc-main"}, {"Value": "\"zBa0ezKHAlw0swEYP4GNM3227F3GSL6OMa+wFbR1iwE=\"", "Name": "sess-at-main"}, {"Value": "130-1844049-4015735", "Name": "session-id"}, {"Value": "2264948948l", "Name": "session-id-time"}, {"Value": "\"Q6VNjqErPpQle+1mwQha3g9Am3BcPw18gRY4lcCEl5qyjof1daE6HphFZVKIl+SEtMmvv5O0VVqlGbSKsZ7GIriLy61L/sh0NYpss1jJUeIbPFv+WPBgnSLGhc1X04TLYCuKF5PdTO9gGXHuR+M6FC/6ZBEhzBnhnYg/vZ9dDTYFB0zRlGbS/5bnEvT4f1he2k9Wg84YiM8wTupIyOWnJPQaCAtacT0m7SBye2z012c=\"", "Name": "session-token"}, {"Value": "131-1027255-3266204", "Name": "ubid-main"}, {"Value": "\"kQbY4qTgYI2z83A?b@FoKkxIhK0G?zsa\"", "Name": "x-main"}, {"Value": "8+bblne5+SkLaocvbx4zg2dom/ahSqLLfQK2qnf76UedQVci1jlJp6NmrGbsy24jxRE57RpenP5jWAeLgIkP8YXEBhaUtgO06KXNYuIM/voZqpfYQtC2IQcgo1SkKdb/eHel+vDxG0Z7NWZs/PaZUlh61T+jRIhPkcUcA/pDyQ/zB87HsvZ5ZaH2ZO/7RcWMUB+VKy+R+SeVDCD1e1wHMz2DX/PDwbKcP5MPrC8EjrGd5chkPpMCYIG7W5GN5m+zZrzN9OhvQFoQUyHvbUvYANcI4VFFdZ4b03YtFnbzJXBI+oxb0wNRVNc07CQRdJ9GapfidtM7JSZ8djHwrYR+IZshK/aTVZFNd9SJIc4MBqUamz43V+HIBg+CpuXG2WxEgyveGk1VIDif0Sp1gG/+ITHzQ2ATXCdr7Q==", "Name": "frc"}, {"Value": "eyJkZXZpY2VfdXNlcl9kaWN0aW9uYXJ5IjpbXSwiZGV2aWNlX3JlZ2lzdHJhdGlvbl9kYXRhIjp7InNvZnR3YXJlX3ZlcnNpb24iOiIxIn0sImFwcF9pZGVudGlmaWVyIjp7ImFwcF92ZXJzaW9uIjoiMi4yLjIyMzgzMCIsImJ1bmRsZV9pZCI6ImNvbS5hbWF6b24uZWNobyJ9fQ==", "Name": "map-md"}], "domain": ".amazon.com"}, "registration_data": {"domain": "Device", "app_version": "2.2.223830.0", "device_type": "A2IVLV5VM2W81", "device_name": "%FIRST_NAME%'s%DUPE_STRATEGY_1ST%Alexa Media Player", "os_version": "11.4.1", "device_serial": "d43a884f21d50932b7ddbfb1bd6715b0", "device_model": "iPhone", "app_name": "Alexa Media Player", "software_version": "1"}, "auth_data": {"access_token": "Atna|EwICIFWXHeC-tL08rbI5ccwG0sq7dv4Txapr4Kld_Cls4C2zW8gpWxI-Z67PZeoiGt6tf1NEcAMJ-KbuJ7tZQADyG_LqIQUs5NgMWf8wf0XBNq2eDT1lZTTcuusrFKMAWvqtW_VDgxY3VWL4XKCt-ubouyN1jKeA65vipRZhc1cU_q_Zde4VKQc2oGy2fyaQ3StZGSuR7xFgnFG_0DYmG1XNlA8h0-ESSVDuiaD_Nt3uEVMPQSVQxXFLpEPV8_1-E6wecziOKEQcl4_4Ma9t8ASzbZ4sksBnb0Ah_gOkq2U3eG1A2js7tST7fo8-MMJav-jes6s"}, "user_context_map": {"frc": "8+bblne5+SkLaocvbx4zg2dom/ahSqLLfQK2qnf76UedQVci1jlJp6NmrGbsy24jxRE57RpenP5jWAeLgIkP8YXEBhaUtgO06KXNYuIM/voZqpfYQtC2IQcgo1SkKdb/eHel+vDxG0Z7NWZs/PaZUlh61T+jRIhPkcUcA/pDyQ/zB87HsvZ5ZaH2ZO/7RcWMUB+VKy+R+SeVDCD1e1wHMz2DX/PDwbKcP5MPrC8EjrGd5chkPpMCYIG7W5GN5m+zZrzN9OhvQFoQUyHvbUvYANcI4VFFdZ4b03YtFnbzJXBI+oxb0wNRVNc07CQRdJ9GapfidtM7JSZ8djHwrYR+IZshK/aTVZFNd9SJIc4MBqUamz43V+HIBg+CpuXG2WxEgyveGk1VIDif0Sp1gG/+ITHzQ2ATXCdr7Q=="}, "requested_token_type": ["bearer", "mac_dms", "website_cookies"]} 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] Successfully registered Gabriel's Alexa Media Player device with Amazon 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] Received registration data: {"success": {"extensions": {"device_info": {"device_name": "Gabriel's Alexa Media Player", "device_serial_number": "d43a884f21d50932b7ddbfb1bd6715b0", "device_type": "A2IVLV5VM2W81"}, "customer_info": {"account_pool": "Amazon", "user_id": "amzn1.account.AHSUFUMQJ66MFBGGJ6LWHEGP35RQ", "home_region": "NA", "name": "Gabriel R Maffia", "given_name": "Gabriel"}}, "tokens": {"website_cookies": [{"Path": "/", "Secure": "true", "Value": "130-1844049-4015735", "Expires": "9 Oct 2041 16:29:09 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "session-id"}, {"Path": "/", "Secure": "true", "Value": "131-1027255-3266204", "Expires": "9 Oct 2041 16:29:09 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "ubid-main"}, {"Path": "/", "Secure": "true", "Value": "\"Ayo2sOVYqQEAgzNc07KtStIXClcfMrkM\"", "Expires": "9 Oct 2041 16:29:09 GMT", "Domain": ".amazon.com", "HttpOnly": "false", "Name": "x-main"}, {"Path": "/", "Secure": "true", "Value": "\"Atza|IwEBIM6h8dUGKPbiDjgQ38zzdKErvMhOyvXJbgg6S9KOAq91c-Znm3PhLE0GE4x4jmsaEd2pJII_sIfA3rkeXHlUo8RxeZBd3QKVtWGt-HPCc-9yv4rrT6c5Fc8zM_W5ulKvEVbE7ZU50rik8e1P2rZRMNyBpH6_Y5CJAoW8W_GwJyyspKTnbJ7IgsX4Z4F-OOlHoQaxH01MqBBOWQZ7njy9XtMTywJDo4-rh27Fa2aaMH_wtTJW8Vaja_hBkFDbYmx_x9jJqvbi6RlPQZm2BYJUxjR2hs6jEfSSParPdRrR0T24L0LJtTBHn7KYsqkXFBwZYqgRwxJu-hGZSB8ROcXPmIMIza6Z_QWcjI4FH5qMqr_Ty7xKt-71vrIablgNpfkYy7A\"", "Expires": "15 Oct 2021 16:29:09 GMT", "Domain": ".amazon.com", "HttpOnly": "true", "Name": "at-main"}, {"Path": "/", "Secure": "true", "Value": "\"MT4ZKvTyHvm6DOwiganrQxIV1bDZPkZG2vVxObGIF3k=\"", "Expires": "15 Oct 2021 16:29:09 GMT", "Domain": ".amazon.com", "HttpOnly": "true", "Name": "sess-at-main"}], "mac_dms": {"device_private_key": "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDUqii1XaEk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YWPoZTMfQZguJ3IZl0tF9VbGSScMp0kQ_4u7N_s2vDS3x3HsT6KK5g_6EhYcFc8JCUGe87Yy3OT77gRZRESu4-ybu9OXO_Hb1cd9jzc1Z1mSLTnwyxEauEAoy7", "refresh_token": "Atnr|EwICIHF-TImvM5-BJ38LG3v9hUeUsa-tp9cCuky1KIKL5cGUFNB3KQrL2sQ1OFB0cl8K92suJIjwSy-HxMGuDyIZachkl3tfvMbHdrpkzcAsniBzB2wl780Rjh4B4aoVm8CdA5NZuE4j1Dk1zbfVotjmuJKMaKCaPMUAHzN9my29LsUelADAQHexzjHWJK9m8WmyKf_WvdR5NqiHAaTG52WKS4Fwt-4DdaZzPp89itdHkhW4UI7AkRtCW1mfayzuNxnnJC5tmhcwsj_-fY3RSNsuYVREGLUY-3_v7Gm53G6L2WccEMekjldYneBiTi7QT7WV2LXuXYP4tawr5RDgKnMyBdkl", "expires_in": "3600"}}, "customer_id": "amzn1.account.AHSUFUMQJ66MFBGGJ6LWHEGP35RQ"}} 2021-10-14 13:29:09 DEBUG (MainThread) [alexapy.alexalogin] New access token received which expires at 2021-10-14 14:29:09.770883 in 0:59:59.999963 2021-10-14 13:29:10 DEBUG (MainThread) [alexapy.alexalogin] Fallback attempt to exchange tokens with www.amazon.com 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Failed to exchange cookies for refresh token: 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Attempting to discover CSRF token 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: None 2021-10-14 13:29:11 DEBUG (MainThread) [alexapy.alexalogin] No csrf token found 2021-10-14 13:29:12 DEBUG (MainThread) [alexapy.alexalogin] GET: redirected from https://alexa.amazon.com/api/bootstrap 2021-10-14 13:29:12 DEBUG (MainThread) [alexapy.alexalogin] GET: https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0& with returned 200:OK with response 2021-10-14 13:29:12 DEBUG (MainThread) [alexapy.alexalogin] Not logged in: An exception of type ContentTypeError occurred. Arguments: (RequestInfo(url=URL('https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0&'), method='GET', headers=, real_url=URL('https://www.amazon.com/ap/signin?showRmrMe=1&openid.return_to=https://alexa.amazon.com/api/bootstrap&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.assoc_handle=amzn_dp_project_dee&openid.mode=checkid_setup&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.ns=http://specs.openid.net/auth/2.0&')), ( ,)) ```
alandtse commented 3 years ago

Please login to alexa.amazon.com on your browser. Does it have your echo devices? If not, it's the wrong one. I don't know what is the appropriate Argentina domain. You will need to discover that.

gmaffia commented 3 years ago

@alandtse indeed, the echo was set on a different account. I was pretty sure it was on my main account, but it was set on a secondary one. I'm sorry to have bothered you with this. Thanks a lot for your help!

ReleaseTheHounds commented 11 months ago

All my devices appear on the Amazonhttps://alexa.amazon.com/api/devices-v2/device page but all I see is a Browswer and VLC_Client.