alexa_media_player: 500 Internal Server Error on setup
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
When attempting to set up Alexa Media Player, after sign in and completing the capture, I’m redirected to a 500 Internal Server Error page that has the helpful description of “Server got itself in trouble”. I’m running HA in a docker container and I’ve tried using the external web address ha.domain.com which is directed through nginx and via the direct IP address of the host. Have done a clean install of AMP and disabled my pi-hole which was causing issues with getting stuck in a capture loop.
To Reproduce
Install Alexa Media Player via HACS Go to Integrations Add Alexa Media Player Integration Complete all fields and change amazon.com to amazon.co.uk Sign in to Amazon on following page Complete capture Get 500 error
Expected behavior
Expected behaviour is no 500 internal error
Screenshots
System details
- Home-assistant (version): core 2023.11.3, frontend 20231030.2
- alexa_media (version from
const.py
or HA startup): 4.8.0 - alexapy (version from
pip show alexapy
or HA startup): 1.27.10 - Amazon 2FA is enabled (y/n). <!—We will not debug login issues if unanswered—>: Yes
Logs
2023-12-02 20:16:00.088 WARNING (SyncWorker_3) [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
2023-12-02 20:16:00.142 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration spotcast 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
2023-12-02 20:16:00.233 WARNING (SyncWorker_3) [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
2023-12-02 20:16:00.274 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration weatherdotcom 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
2023-12-02 20:16:00.335 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration octopus_energy 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
2023-12-02 20:16:00.385 WARNING (SyncWorker_3) [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
2023-12-02 20:18:18.930 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Creating new login
2023-12-02 20:18:18.931 DEBUG (MainThread) [custom_components.alexa_media.helpers] ********************@************.**********: Returning uuid {'uuid': 'ab5fa5f435bbd109ddd5a28bb0794241', 'index': 0}
2023-12-02 20:18:19.049 DEBUG (MainThread) [alexapy.alexalogin] Creating TOTP for A************************************************XLA
2023-12-02 20:18:19.053 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 531407
2023-12-02 20:18:19.055 DEBUG (MainThread) [alexapy.alexalogin] Login created for ********************@************.********** - amazon.co.uk
2023-12-02 20:18:19.085 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 531407
2023-12-02 20:18:19.085 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Generating OTP from 531407
2023-12-02 20:18:23.435 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Starting proxy for ********************@************.********** - amazon.co.uk
2023-12-02 20:18:23.438 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
2023-12-02 20:18:23.575 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 531407
2023-12-02 20:18:23.576 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 2 modifiers: ['prepend_relative_urls', 'change_host_to_proxy']
2023-12-02 20:18:23.576 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 1 tests: ['test_amazon_url']
2023-12-02 20:18:23.576 DEBUG (MainThread) [alexapy.alexalogin] Generating OTP 531407
2023-12-02 20:18:23.577 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 3 modifiers: ['autofill', 'prepend_relative_urls', 'change_host_to_proxy']
2023-12-02 20:18:23.662 DEBUG (MainThread) [custom_components.alexa_media.config_flow] Found flow_id; adding 10.1.7.50 to known_ips for 300 seconds
2023-12-02 20:18:23.663 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received get: http://10.1.7.2:8123/auth/alexamedia/proxy?config_flow_id=27783a77b0673618aed16a5bce37d135&callback_url=http://10.1.7.2:8123/auth/alexamedia/callback?flow_id%3D27783a77b0673618aed16a5bce37d135 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
2023-12-02 20:18:23.670 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
2023-12-02 20:18:23.672 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Replacing http://10.1.7.2:8123/ with http://10.1.7.2:8123/
2023-12-02 20:18:23.673 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Replacing http://10.1.7.2:8123/ with https://www.amazon.com/ in http://10.1.7.2:8123/config/integrations/dashboard
2023-12-02 20:18:23.673 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Referer': 'https://www.amazon.com/config/integrations/dashboard', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
2023-12-02 20:18:23.673 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Referer': 'https://www.amazon.com/config/integrations/dashboard', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
cookies: <CookieJar[]>
2023-12-02 20:18:24.486 DEBUG (MainThread) [authcaptureproxy.helper] GET:
https://www.amazon.com/ap/signin?openid.return_to=https:%2F%2Fwww.amazon.com%2Fap%2Fmaplanding&openid.assoc_handle=amzn_dp_project_dee_ios&openid.identity=http:%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&pageId=amzn_dp_project_dee_ios&accountStatusPolicy=P1&openid.claimed_id=http:%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns.oa2=http:%2F%2Fwww.amazon.com%2Fap%2Fext%2Foauth%2F2&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http:%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.oa2.response_type=code&openid.ns=http:%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB with
{"host": "www.amazon.com", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", "accept-language": "en,en-US;q=0.5", "accept-encoding": "gzip, deflate", "referer": "https://www.amazon.com/config/integrations/dashboard", "dnt": "1", "connection": "keep-alive", "upgrade-insecure-requests": "1"}
returned 200:OK with response Headers([('content-type', 'text/html;charset=UTF-8'), ('transfer-encoding', 'chunked'), ('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Sat, 02 Dec 2023 20:18:24 GMT'), ('x-amz-rid', 'ABY5XR7ED4YGM15Z5QH3'), ('set-cookie', 'ap-fid=""; Domain=.amazon.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/ap/; Secure'), ('set-cookie', 'session-id=132-9239178-6870653; Domain=.amazon.com; Expires=Sun, 01-Dec-2024 20:18:23 GMT; Path=/; Secure'), ('set-cookie', 'session-id-time=2332268303l; Domain=.amazon.com; Expires=Sun, 01-Dec-2024 20:18:23 GMT; Path=/; Secure'), ('set-cookie', 'lc-main=en_GB; Domain=.amazon.com; Expires=Sun, 01-Dec-2024 20:18:23 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,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'), ('x-cache', 'Miss from cloudfront'), ('via', '1.1 8a2dbe2d91170aaa26a5c93eeaf49e5c.cloudfront.net (CloudFront)'), ('x-amz-cf-pop', 'LHR62-C3'), ('alt-svc', 'h3=":443"; ma=86400'), ('x-amz-cf-id', '3FYhUOO6WolwJCcXrtOO6WTxU_5kyPrNDd7Q1_un6v2U-Z4eV6dYvA==')])
2023-12-02 20:18:24.487 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url
2023-12-02 20:18:24.491 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Refreshed 4 modifiers: ['autofill', 'prepend_relative_urls', 'change_host_to_proxy', 'change_empty_to_proxy']
2023-12-02 20:18:24.496 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill
2023-12-02 20:18:24.599 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls
2023-12-02 20:18:24.652 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.653 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.655 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.656 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.656 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.656 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.657 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,514DGcyUroL.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,514DGcyUroL.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1
2023-12-02 20:18:24.657 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.658 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.660 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.661 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.663 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.663 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.664 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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0
2023-12-02 20:18:24.664 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.665 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.665 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href -> http://10.1.7.2:8123/auth/alexamedia/proxy/
2023-12-02 20:18:24.666 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.666 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.666 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /conditions_of_use_mobile?pop-up=1 -> http://10.1.7.2:8123/auth/alexamedia/proxy/conditions_of_use_mobile?pop-up=1
2023-12-02 20:18:24.667 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.667 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.667 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for a:href /privacy_policy_mobile -> http://10.1.7.2:8123/auth/alexamedia/proxy/privacy_policy_mobile
2023-12-02 20:18:24.668 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.668 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.669 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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0
2023-12-02 20:18:24.672 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.672 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.672 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ABY5XR7ED4YGM15Z5QH3:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ABY5XR7ED4YGM15Z5QH3:0
2023-12-02 20:18:24.673 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.673 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.674 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:24.674 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:24.675 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ABY5XR7ED4YGM15Z5QH3:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ABY5XR7ED4YGM15Z5QH3:0
2023-12-02 20:18:24.704 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy
2023-12-02 20:18:24.765 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.768 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.771 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71fzo3588yL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.gb.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71fzo3588yL.css?AUIClients/AuthenticationPortalAlexaSkin=
2023-12-02 20:18:24.772 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.774 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,514DGcyUroL.css_.css?AUIClients/AuthenticationPortalAssets&QmmAyoMU#mobile.194821-T1 -> https://images-na.ssl-images-amazon.com/images/I/01SdjaY0ZsL._RC%7C31jdWD+JB+L.css,514DGcyUroL.css_.css?AUIClients/AuthenticationPortalAssets=&QmmAyoMU=
2023-12-02 20:18:24.775 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.776 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/21D7oXu-KGL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/21D7oXu-KGL.css?AUIClients/CVFAssets=
2023-12-02 20:18:24.778 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.779 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action https://www.amazon.com/ap/signin/132-9239178-6870653 -> http://10.1.7.2:8123/auth/alexamedia/proxy/ap/signin/132-9239178-6870653
2023-12-02 20:18:24.781 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.782 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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0 -> http://10.1.7.2:8123/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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0
2023-12-02 20:18:24.783 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.784 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.785 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.787 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.788 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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0 -> http://10.1.7.2:8123/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_GB&pageId=amzn_dp_project_dee_ios&openid.return_to=https://www.amazon.com/ap/maplanding&prevRID=ABY5XR7ED4YGM15Z5QH3&openid.assoc_handle=amzn_dp_project_dee_ios&openid.oa2.response_type=code&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&openid.oa2.code_challenge_method=S256&prepopulatedLoginId=&failedSignInCount=0&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&openid.oa2.scope=device_auth_access&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.oa2.client_id=device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns=http://specs.openid.net/auth/2.0
2023-12-02 20:18:24.792 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.794 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fstaticb&id=ABY5XR7ED4YGM15Z5QH3:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:/ap/uedata%3Fstaticb&id=ABY5XR7ED4YGM15Z5QH3:0
2023-12-02 20:18:24.794 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.796 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:24.797 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for img:src //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:%2Fap%2Fuedata%3Fnoscript&id=ABY5XR7ED4YGM15Z5QH3:0 -> //fls-na.amazon.com/1/batch/1/OP/ATVPDKIKX0DER:132-9239178-6870653:ABY5XR7ED4YGM15Z5QH3$uedata=s:/ap/uedata%3Fnoscript&id=ABY5XR7ED4YGM15Z5QH3:0
2023-12-02 20:18:24.825 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy
2023-12-02 20:18:24.882 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url
2023-12-02 20:18:27.406 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: http://10.1.7.2:8123/auth/alexamedia/proxy/ap/signin/132-9239178-6870653 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
2023-12-02 20:18:27.410 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'appActionToken': 'D8pIxND085vcApAjiDkggs6LIJUj3D', 'appAction': 'SIGNIN', 'openid.return_to': 'ape:aHR0cHM6Ly93d3cuYW1hem9uLmNvbS9hcC9tYXBsYW5kaW5n', 'prevRID': 'ape:QUJZNVhSN0VENFlHTTE1WjVRSDM=', 'workflowState': 'eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2R0NNIiwiYWxnIjoiQTI1NktXIn0.ePzCDV2IoYY8KbnCNn2iFO-IZJrOV18IyA05XdiazCMbVttRo9VNig.33JEQKH441m7fXj2.wjXxhzor4jPeodgWlhGYbt0lSnG5fx_akRfI76hom1lPV3cBhwg5Sr40doMiSL4c8Th2hdBcvaaZFSazj9vljLftsaD13UPvxrXQwfWVmXuw-t-jZfODz_6lxA_JN5CEmLyZgRZJpjuXDrOkKjtydntLXEMpK_jMOnmz_pvQ-r9cLy2u-Cq5bO6-3vxnKW50ziWiCWal8dzxvtt-zUhwVrYVw2SmTr_Ur2IZk9nIKIM-7-DUZnMi4-80anNLKplw2zozXYVhuhFYSF33UEfgldpg_50ySVc6acnlaURT3QuHeY2M244eCVKKQ_Wd5vEHYU8-kKDUUsr066oHOQGyCMXHRXlAA-4DRtpdJHcngxbNzgD_xIPkAg8T92bMH21w3BRiBRJIxxCv55knt_-UNNqIFM3hYnVstrJq59d77QbOZe_d5yHzTC029cOq6IXfryeKOErECHh5xC78n0RVuocHuI0r6EwTCPB8aSf0ltWGrtsFjhZEK0n9k8wegs03pnOyhsYf8BsDLN4zvs-jBGBZMCDMq5-itOoMT7LUen2ueZAeMGmtAmAmPY9bAw6RwpDBOTT42dQwa8yYiLU35pP3m9oS6jbgR-6847rHm-us7bMKPkoO3DBPGWe-PVQ.8HGawMQd2n1ZhmesHAqZkg', 'giveFocusOnMobileToFirstControlFailingValidation': 'false', 'email': '********************@************.**********', 'password': '*****************', 'showPasswordChecked': 'false', 'encryptedPasswordExpected': '', 'metadata1': 'true', 'aaToken': 'staticSessionToken'}
2023-12-02 20:18:27.412 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'Origin': 'https://www.amazon.com', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
2023-12-02 20:18:27.413 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/ap/signin/132-9239178-6870653
headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'Origin': 'https://www.amazon.com', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
cookies: <CookieJar[<Cookie session-id=132-9239178-6870653 for .amazon.com/>, <Cookie session-id-time=2332268303l for .amazon.com/>, <Cookie lc-main=en_GB for .amazon.com/>]>
2023-12-02 20:18:28.421 DEBUG (MainThread) [authcaptureproxy.helper] POST: redirected from
https://www.amazon.com/ap/signin/132-9239178-6870653
2023-12-02 20:18:28.423 DEBUG (MainThread) [authcaptureproxy.helper] GET:
https://www.amazon.com/ap/cvf/request?arb=ec4019d4-0281-4b33-9cb4-2eab79ef7b38&language=en_GB with
{"host": "www.amazon.com", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0", "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", "accept-language": "en,en-US;q=0.5", "accept-encoding": "gzip, deflate", "content-type": "application/x-www-form-urlencoded", "origin": "https://www.amazon.com", "dnt": "1", "connection": "keep-alive", "upgrade-insecure-requests": "1", "cookie": {"session-id": "132-9239178-6870653", "session-id-time": "2332268308l", "lc-main": "en_GB", "ubid-main": "130-6513935-8604559"}}
returned 200:OK with response Headers([('content-type', 'text/html;charset=UTF-8'), ('transfer-encoding', 'chunked'), ('connection', 'keep-alive'), ('server', 'Server'), ('date', 'Sat, 02 Dec 2023 20:18:28 GMT'), ('x-amz-rid', 'YFDFTDJXXEQR7T4236VW'), ('set-cookie', 'lc-main=en_GB; Domain=.amazon.com; Expires=Tue, 01 Jan 2036 08:00:01 GMT; Path=/'), ('set-cookie', 'session-id=132-9239178-6870653; Domain=.amazon.com; Expires=Tue, 01 Jan 2036 08:00:01 GMT; Path=/'), ('set-cookie', 'session-id-time=2082787201l; Domain=.amazon.com; Expires=Tue, 01 Jan 2036 08:00:01 GMT; Path=/'), ('set-cookie', 'session-token=SWAOQdrJO+ED35RErIoWk53pJWMhrQYN+oqyLmE4YHGnEGR1dzIZRTe5aFzmfTt18RRfDvZKSGthcoPcSWwT4vLxwGl7hmsykEKD+OGjYXJuNWc6ouYPPzfiS6eUzl3vbb0rguxFw7dnfKkqDheC+TpwEsF0kz8SiWQTTm5PQVFnIoz9mB5CkY93YdF9TiB2A8eKysFKTibf4bR5y2mxbXmnFx8VXR3l1oypEF3CnN/hFAmTK3Oleb34/kJx7ekvkxWesKPVhf7flSz26LGBV/lpqPHOVYRsLUglviHJDT793GrdNXLJwYT/5dcsNSjKck5oVtAhBGDhy5dZeD1PJjUl7Xe4+/yX; Domain=.amazon.com; Expires=Tue, 01 Jan 2036 08:00:01 GMT; Path=/'), ('pragma', 'no-cache'), ('expires', 'Thu, 01 Jan 1970 00:00:00 GMT'), ('cache-control', 'no-cache'), ('cache-control', 'no-store'), ('content-encoding', 'gzip'), ('content-language', 'en'), ('vary', 'accept-encoding,Content-Type,Accept-Encoding,User-Agent'), ('strict-transport-security', 'max-age=47474747; includeSubDomains; preload'), ('x-frame-options', 'SAMEORIGIN'), ('x-cache', 'Miss from cloudfront'), ('via', '1.1 8a2dbe2d91170aaa26a5c93eeaf49e5c.cloudfront.net (CloudFront)'), ('x-amz-cf-pop', 'LHR62-C3'), ('alt-svc', 'h3=":443"; ma=86400'), ('x-amz-cf-id', 'v1AvM8V6CUaRzIHQN9P9Xe-qfEkltLrSQ3eqjaFCvNl76CulnLNQHw==')])
2023-12-02 20:18:28.484 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine test_amazon_url
2023-12-02 20:18:28.487 DEBUG (MainThread) [authcaptureproxy.helper] Running function autofill
2023-12-02 20:18:28.541 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine prepend_relative_urls
2023-12-02 20:18:28.569 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:28.569 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:28.570 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:28.570 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:28.571 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:28.571 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:28.572 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for form:action verify -> http://10.1.7.2:8123/auth/alexamedia/proxy/verify
2023-12-02 20:18:28.574 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:28.574 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:28.575 DEBUG (MainThread) [authcaptureproxy.helper] Running function prepend_url
2023-12-02 20:18:28.575 DEBUG (MainThread) [authcaptureproxy.helper] Base URL is to file "proxy", treating as path
2023-12-02 20:18:28.590 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_host_to_proxy
2023-12-02 20:18:28.617 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:28.618 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/71fzo3588yL.css?AUIClients/AuthenticationPortalAlexaSkin#mobile.gb.not-trident -> https://images-na.ssl-images-amazon.com/images/I/71fzo3588yL.css?AUIClients/AuthenticationPortalAlexaSkin=
2023-12-02 20:18:28.619 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:28.620 DEBUG (MainThread) [authcaptureproxy.examples.modifiers] Modified url for link:href https://images-na.ssl-images-amazon.com/images/I/21D7oXu-KGL.css?AUIClients/CVFAssets#mobile -> https://images-na.ssl-images-amazon.com/images/I/21D7oXu-KGL.css?AUIClients/CVFAssets=
2023-12-02 20:18:28.621 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:28.624 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:28.626 DEBUG (MainThread) [authcaptureproxy.helper] Running function swap_url
2023-12-02 20:18:28.644 DEBUG (MainThread) [authcaptureproxy.helper] Running coroutine change_empty_to_proxy
2023-12-02 20:18:28.673 DEBUG (MainThread) [authcaptureproxy.helper] Running function replace_empty_url
2023-12-02 20:18:41.051 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Received post: http://10.1.7.2:8123/auth/alexamedia/proxy/verify 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:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331&openid.ns.pape=http://specs.openid.net/extensions/pape/1.0&openid.oa2.response_type=code&openid.ns=http://specs.openid.net/auth/2.0&openid.pape.max_auth_age=0&openid.oa2.scope=device_auth_access&openid.oa2.code_challenge_method=S256&openid.oa2.code_challenge=cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s&language=en_GB
2023-12-02 20:18:41.056 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Storing data {'cvf_captcha_captcha_token': 'K7ztlCpjd3jAz4MTf39/fwAAAAAAAAAB7M6pG7nwb4EmgXNRf8O+V6ydlau0ue8Pv63CAzRz94jsM6jkb6SBmVCcNcxYiFTLwVHejAWNBGcqCMOpTG/iea8BVSMSc8f0Kebzb7uu1JH9SMB3P09N69D7bjn7sPIOTbAadmCgsUBB735X+YGnY0YSiUzB4jMPDB37u+Y0SJNLDHSJh8FCFJhKvnZbhW+8z3lGoDhiBLmaYkR4Oed4/fW5HkXfTkAPpEFw2x8rjGjwG4JiWE9JkEP95xUiIBq7nM7MAKDDR0K6pP3oGrDVkyvbtx7H5am0w1ZpmTr+hjJTljlHGsexrxPzw9eAXb0/xwnm8b9pdhWv', 'cvf_captcha_captcha_type': 'imageCaptcha', 'cvf_captcha_js_enabled_metric': '1', 'clientContext': '130-6513935-8604559', 'openid.pape.max_auth_age': '0', 'forceMobileLayout': '1', 'accountStatusPolicy': 'P1', 'openid.identity': 'http://specs.openid.net/auth/2.0/identifier_select', 'language': 'en_GB', 'pageId': 'amzn_dp_project_dee_ios', 'openid.return_to': 'https://www.amazon.com/ap/maplanding', 'openid.assoc_handle': 'amzn_dp_project_dee_ios', 'openid.oa2.response_type': 'code', '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', 'openid.oa2.code_challenge_method': 'S256', 'openid.oa2.code_challenge': 'cbE1__34pVvTZh_1TpWf36OVzdCdcPcDh2dVHt-m10s', 'openid.oa2.scope': 'device_auth_access', 'openid.claimed_id': 'http://specs.openid.net/auth/2.0/identifier_select', 'openid.oa2.client_id': 'device:616235666135663433356262643130396464643561323862623037393432343132333431333234393536346335363335353634643332353733383331', 'openid.ns': 'http://specs.openid.net/auth/2.0', 'verifyToken': 's|8ba8b8cb-22b2-3530-ad77-985c656c690a', 'cvf_captcha_input': 'w84q8r', 'cvf_captcha_captcha_action': 'verifyCaptcha'}
2023-12-02 20:18:41.059 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Final headers {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'Origin': 'https://www.amazon.com', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
2023-12-02 20:18:41.059 DEBUG (MainThread) [authcaptureproxy.auth_capture_proxy] Attempting post to https://www.amazon.com/verify
headers: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8', 'Accept-Language': 'en,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Content-Type': 'application/x-www-form-urlencoded', 'Origin': 'https://www.amazon.com', 'DNT': '1', 'Connection': 'keep-alive', 'Upgrade-Insecure-Requests': '1'}
cookies: <CookieJar[<Cookie session-id=132-9239178-6870653 for .amazon.com/>, <Cookie session-id-time=2082787201l for .amazon.com/>, <Cookie lc-main=en_GB for .amazon.com/>, <Cookie ubid-main=130-6513935-8604559 for .amazon.com/>, <Cookie session-token=SWAOQdrJO+ED35RErIoWk53pJWMhrQYN+oqyLmE4YHGnEGR1dzIZRTe5aFzmfTt18RRfDvZKSGthcoPcSWwT4vLxwGl7hmsykEKD+OGjYXJuNWc6ouYPPzfiS6eUzl3vbb0rguxFw7dnfKkqDheC+TpwEsF0kz8SiWQTTm5PQVFnIoz9mB5CkY93YdF9TiB2A8eKysFKTibf4bR5y2mxbXmnFx8VXR3l1oypEF3CnN/hFAmTK3Oleb34/kJx7ekvkxWesKPVhf7flSz26LGBV/lpqPHOVYRsLUglviHJDT793GrdNXLJwYT/5dcsNSjKck5oVtAhBGDhy5dZeD1PJjUl7Xe4+/yX for .amazon.com/>]>
Additional context
I’ve redacted my email and password which were both stored in plain text in the logs as well.
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 19 (1 by maintainers)
This worked for me as well.
It’s kind of a fix if it works, but then doesn’t this mean you have to use 2FA every time you login to amazon?