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.52k stars 289 forks source link

Amazon.fr don't work No csrf token found v4.12.6 #2431

Closed bouboun59 closed 3 months ago

bouboun59 commented 3 months ago

Connection dont' work with alex media last version

2024-08-08 15:14:31.580 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /spa/index.html 2024-08-08 15:14:31.632 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: <ClientResponse(https://alexa.amazon.fr/api/language) [401 Unauthorized]> <CIMultiDictProxy('Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:31 GMT', 'Strict-Transport-Security': 'max-age=0; includeSubDomains;', 'x-amz-rid': 'SJ4Y0ZZ414GE6CAY4HSA', 'loginUrl': 'https://www.amazon.fr/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.fr%2Flogin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=amzn_dp_project_dee_fr&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&', 'x-amzn-RequestId': 'SJ4Y0ZZ414GE6CAY4HSA', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 b635e2b1f0ae92160e68ba87d10e2754.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG55-P3', 'X-Amz-Cf-Id': '8SRCB5dNfglwQMYT83BK1TdlsDXWhUCDujBku4rUTZSdW3SB3cx0dw==')>

2024-08-08 15:14:31.739 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /api/devices-v2/device?cached=false 2024-08-08 15:14:31.794 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /templates/oobe/d-device-pick.handlebars 2024-08-08 15:14:31.839 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: <ClientResponse(https://alexa.amazon.fr/api/strings) [401 Unauthorized]>

================LOGS ===================

2024-08-08 15:14:27.054 DEBUG (MainThread) [alexapy.alexalogin] Received registration data: {"success": {"extensions": {"device_info": {"device_name": "XXXXXXXXXXXXX's 24th Alexa Media Player", "device_serial_number": "2fa41d9faee31529ac83ab49a490cccd", "device_type": "A2IVLV5VM2W81"}, "customer_info": {"account_pool": "Amazon", "user_id": "amzn1.account.AHTXTSZDQH6ZY3VG32ZBETBIRP4A", "home_region": "EU", "name": "XXXXXXXXXXXXX JONATHAN", "given_name": "XXXXXXXXXXXXX"}}, "tokens": {"website_cookies": [{"Path": "/", "Secure": "true", "Value": "262-8537215-5622607", "Expires": "3 Aug 2044 13:14:27 GMT", "Domain": ".amazon.fr", "HttpOnly": "false", "Name": "session-id"}, {"Path": "/", "Secure": "true", "Value": "258-2905427-2597608", "Expires": "3 Aug 2044 13:14:27 GMT", "Domain": ".amazon.fr", "HttpOnly": "false", "Name": "ubid-acbfr"}, {"Path": "/", "Secure": "true", "Value": "\"VU2U1xZgUD18j9qEnjUsORVOoY1VxI6z\"", "Expires": "3 Aug 2044 13:14:27 GMT", "Domain": ".amazon.fr", "HttpOnly": "false", "Name": "x-acbfr"}, {"Path": "/", "Secure": "true", "Value": "\"Atza|IwEBIAWrCD23dbxroM1ynLCbTi5P7kHa9aURFWO6y8enmxhgvPxCwzIfk_pHZ04Y8XkS7OYY0g0ylOviMG80FcEaZ_ZSs_skUZIdajYzIvVfMbt1bdswi4mN_Ya-RiL7aZ9AhhZ5VkeIE91lCb9e2jro4R4n7CLeu3q8OcKq8tFrN-7Q5rhio2h2fz7qCDx3-nWYF01WypgXDIyxmJfUra8ov8GQvjQsRkXOtA7ucMI_SR8kruJuV4tfFaOxrbRFPg82GOhbEN1tGADDp4vO8KrbkmIxyWE4GbcMBomKy9OcIxVIvtPcqjATDSed0mhbTc3sEhVVclcNyEi92W6cGJ_CkvwN5RjSxL8z3agPEjEdQE8ARty63ZjVE6QPVzliFmkYITKUKbZAMDIf3gdHBooyb3z4\"", "Expires": "9 Aug 2024 13:14:27 GMT", "Domain": ".amazon.fr", "HttpOnly": "true", "Name": "at-acbfr"}, {"Path": "/", "Secure": "true", "Value": "\"AY2c+4hyvqDovj5y8taQdQYpFvaAsOOGsaTziTj8bNs=\"", "Expires": "9 Aug 2024 13:14:27 GMT", "Domain": ".amazon.fr", "HttpOnly": "true", "Name": "sess-at-acbfr"}], "mac_dms": {"device_private_key": "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDF7Zrs94n8aHTiV2fJqERkG+2istOBwlhPndlA6k3B77gzt52pw3bt1gMyFlN1l+1fV1h0eOiSH34rwNjdsB28+6+eosQvtyJowWIkt5DNN+8pJfn+8504WaRWi9ctYDv8RbjcQhTX0XsVZEXLQhXBxOOzssm7Me24avLa3fMt9BsASfwfhBQcgMn6j7QZD4DdLreEOjXTszZMjgqE+cGtEgd1n+b0hnISOfQXZBrjTIpg2l6j3P0wEYBC6SI8ZBtshVfesG9o9WI5mKZ6SnpJTrGwsVSVtw1Bq7f9w6NdiyzuzrWIpd3UBy1KMXqshQHbNDyxx51cPDGHiuLYwh4NAgMBAAECggEAKIO9jboR5bfgDSDFHvMxpKhO2Vnvj4UfnJR8Dxym9AbE1tlEDab0JjUDjHIjfVOvBDAV7Cl/ucF2izA7dA2D2NZQGZHJxNag1X6YP1nP6yIC85JRfQ2S5iD7UbfoQOKNBNOkxnlEWPUJU9SlsLiDSZmq3nK/dnD+7xv9QC3khEgyKT2Eglkgjq3nh0KT7uBmX6eja9pikms1xnFNjNfM0ae0sxks05jRAZY9HbDv7aXS77Kld3Uf/gGVJiNzR1Pf6P1jiehFUZUhPEcNwNPHCE9WQpHacM3XNzXRiwSDVzfo9FsZazmU5K6ZJfbw/pIlKJVM3TOZ9TfZRwi7rwyO4QKBgQDr7Y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WyrhWmSZMEStKp75sK9lwv4RIgMpI7ZL/AMQAqNpDBXU+47CSn8K43Nje534B7UjMRi2kKUyjBlknzhqu4XXWyfpoQBcBfuzMvPf6gjquu5mKQ0I2oy9ZRGy4LgKpKxSUjDpiTMg==}{iv:5FflqW9zTRObDXod0mDz9g==}{name:QURQVG9rZW5FbmNyeXB0aW9uS2V5}{serial:Mg==}"}, "bearer": {"access_token": "Atna|EwICIApGT9P-g8GCkbYYWgURmLlYn-GNgTnvkJmCIZGwZL_qJ7xis2TeRFbEhpmzQnXqEyWNV3lAcL1Qv-BK3807KqHeitQJyrrsrqNsW83216i09Xvh2D8ethEufUbLLmFLjjBRmUWvyNt0xhmarW0RX7h-XJeGUQ98uKMpLGkaQrOqZJXiyOgmQSHTek6mHjiUXT0rKZPN0HVFYAM6I6cS3vzdG0xZC6COZdVYaVt-t10tezeuMSEjv_XhpFV0h_pRI2cA20ulaW1bCAYvWmgQQsD7HhAnI84M2aZYmHLLbrGHiCNWAEUM-8fjOHdkgYsRTDiznUOO10ajfLeS57SbJ1hI9HfL-tSHB1bze2aXpWC5TjZsUsE-pyRI4TBaQsue4", "refresh_token": "Atnr|EwICIKt3bGmOeY-ZEgGjs7IkDga37nps6knqoiuBJB7sr5hITaRTFpjNwDQ--fE6DasxxFewPemlvrtAdH93bxOQB1NFwTOnvFG5m_lzHu40axu_GKSDapcLaDLRYMPl5AgVMAknZ8seGdcfJ58TVZLCVvyEQp5Na0Zh13UeVTwfTcYPxtEM29Mli2xzeMmLbroF665-8-LmXDBSz4RmDRj4WIWCHJEhhT-_tK5HdTkbG8Xsre73JFUEcJhrj-xyTChTdeX0kHBR_kK73aQ0NsbjVkAlLiZsPDxXGOT4ElD5--0T_0ol8hom0xZ52yMTB6OWaNQsnZa08wnoU0dBuT28lhULJV287LsocyJp5Sy9bZTNZjwEsmDPOQWtaOtWhjrZeSuaQG29ScxBzFSZYdbIQSKJ", "expires_in": "3600"}, "website_cookies_ttl": 2592000}, "customer_id": "amzn1.account.AHTXTSZDQH6ZY3VG32ZBETBIRP4A"}} 2024-08-08 15:14:27.055 DEBUG (MainThread) [alexapy.alexalogin] New access token(396) received which expires at 2024-08-08 16:14:27.055034 in 0:59:59.999989 2024-08-08 15:14:29.252 DEBUG (MainThread) [alexapy.alexalogin] capabilities response <ClientResponse(https://api.amazonalexa.com/v1/devices/@self/capabilities) [204 No Content]> <CIMultiDictProxy('Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:29 GMT', 'x-amz-rid': '7C408AW8KY2AMSAE11Z2', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'Strict-Transport-Security': 'max-age=47474747; includeSubDomains; preload', 'X-Cache': 'Miss from cloudfront', 'Via': '1.1 67bbe30c2f887b8968a0f0c3b05ac564.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG52-P4', 'X-Amz-Cf-Id': '53dWcyHn5nGFR2e179ytiezIizm05Ggw_J8A9TKwGLt8YWwPthW6lg==')> with {"legacyFlags": {"SUPPORTS_COMMS": true, "SUPPORTS_ARBITRATION": true, "SCREEN_WIDTH": 1170, "SUPPORTS_SCRUBBING": true, "SPEECH_SYNTH_SUPPORTS_TTS_URLS": false, "SUPPORTS_HOME_AUTOMATION": true, "SUPPORTS_DROPIN_OUTBOUND": true, "FRIENDLY_NAME_TEMPLATE": "VOX", "SUPPORTS_SIP_OUTBOUND_CALLING": true, "VOICE_PROFILE_SWITCHING_DISABLED": true, "SUPPORTS_LYRICS_IN_CARD": false, "SUPPORTS_DATAMART_NAMESPACE": "Vox", "SUPPORTS_VIDEO_CALLING": true, "SUPPORTS_PFM_CHANGED": true, "SUPPORTS_TARGET_PLATFORM": "TABLET", "SUPPORTS_SECURE_LOCKSCREEN": false, "AUDIO_PLAYER_SUPPORTS_TTS_URLS": false, "SUPPORTS_KEYS_IN_HEADER": false, "SUPPORTS_MIXING_BEHAVIOR_FOR_AUDIO_PLAYER": false, "AXON_SUPPORT": true, "SUPPORTS_TTS_SPEECHMARKS": true}, "envelopeVersion": "20160207", "capabilities": [{"version": "0.1", "interface": "CardRenderer", "type": "AlexaInterface"}, {"interface": "Navigation", "type": "AlexaInterface", "version": "1.1"}, {"type": "AlexaInterface", "version": "2.0", "interface": "Alexa.Comms.PhoneCallController"}, {"type": "AlexaInterface", "version": "1.1", "interface": "ExternalMediaPlayer"}, {"type": "AlexaInterface", "interface": "Alerts", "configurations": {"maximumAlerts": {"timers": 2, "overall": 99, "alarms": 2}}, "version": "1.3"}, {"version": "1.0", "interface": "Alexa.Display.Window", "type": "AlexaInterface", "configurations": {"templates": [{"type": "STANDARD", "id": "app_window_template", "configuration": {"sizes": [{"id": "fullscreen", "type": "DISCRETE", "value": {"value": {"height": 1440, "width": 3200}, "unit": "PIXEL"}}], "interactionModes": ["mobile_mode", "auto_mode"]}}]}}, {"type": "AlexaInterface", "interface": "AccessoryKit", "version": "0.1"}, {"type": "AlexaInterface", "interface": "Alexa.AudioSignal.ActiveNoiseControl", "version": "1.0", "configurations": {"ambientSoundProcessingModes": [{"name": "ACTIVE_NOISE_CONTROL"}, {"name": "PASSTHROUGH"}]}}, {"interface": "PlaybackController", "type": "AlexaInterface", "version": "1.0"}, {"version": "1.0", "interface": "Speaker", "type": "AlexaInterface"}, {"version": "1.0", "interface": "SpeechSynthesizer", "type": "AlexaInterface"}, {"version": "1.0", "interface": "AudioActivityTracker", "type": "AlexaInterface"}, {"type": "AlexaInterface", "interface": "Alexa.Camera.LiveViewController", "version": "1.0"}, {"type": "AlexaInterface", "version": "1.0", "interface": "Alexa.Input.Text"}, {"type": "AlexaInterface", "interface": "Alexa.PlaybackStateReporter", "version": "1.0"}, {"version": "1.1", "interface": "Geolocation", "type": "AlexaInterface"}, {"interface": "Alexa.Health.Fitness", "version": "1.0", "type": "AlexaInterface"}, {"interface": "Settings", "type": "AlexaInterface", "version": "1.0"}, {"configurations": {"interactionModes": [{"dialog": "SUPPORTED", "interactionDistance": {"value": 18, "unit": "INCHES"}, "video": "SUPPORTED", "keyboard": "SUPPORTED", "id": "mobile_mode", "uiMode": "MOBILE", "touch": "SUPPORTED"}, {"video": "UNSUPPORTED", "dialog": "SUPPORTED", "interactionDistance": {"value": 36, "unit": "INCHES"}, "uiMode": "AUTO", "touch": "SUPPORTED", "id": "auto_mode", "keyboard": "UNSUPPORTED"}]}, "type": "AlexaInterface", "interface": "Alexa.InteractionMode", "version": "1.0"}, {"type": "AlexaInterface", "configurations": {"catalogs": [{"type": "IOS_APP_STORE", "identifierTypes": ["URI_HTTP_SCHEME", "URI_CUSTOM_SCHEME"]}]}, "version": "0.2", "interface": "Alexa.Launcher"}, {"interface": "System", "version": "1.0", "type": "AlexaInterface"}, {"interface": "Alexa.IOComponents", "type": "AlexaInterface", "version": "1.4"}, {"type": "AlexaInterface", "interface": "Alexa.FavoritesController", "version": "1.0"}, {"version": "1.0", "type": "AlexaInterface", "interface": "Alexa.Mobile.Push"}, {"type": "AlexaInterface", "interface": "InteractionModel", "version": "1.1"}, {"interface": "Alexa.PlaylistController", "type": "AlexaInterface", "version": "1.0"}, {"interface": "SpeechRecognizer", "type": "AlexaInterface", "version": "2.1"}, {"interface": "AudioPlayer", "type": "AlexaInterface", "version": "1.3"}, {"type": "AlexaInterface", "version": "3.1", "interface": "Alexa.RTCSessionController"}, {"interface": "VisualActivityTracker", "version": "1.1", "type": "AlexaInterface"}, {"interface": "Alexa.PlaybackController", "version": "1.0", "type": "AlexaInterface"}, {"type": "AlexaInterface", "interface": "Alexa.SeekController", "version": "1.0"}, {"interface": "Alexa.Comms.MessagingController", "type": "AlexaInterface", "version": "1.0"}]} {"User-Agent": "AmazonWebView/Amazon Alexa/2.2.556530.0/iOS/16.6/iPhone", "Accept-Language": "en-US", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-type": "application/json; charset=UTF-8", "authorization": "Bearer Atna|EwICIApGT9P-g8GCkbYYWgURmLlYn-GNgTnvkJmCIZGwZL_qJ7xis2TeRFbEhpmzQnXqEyWNV3lAcL1Qv-BK3807KqHeitQJyrrsrqNsW83216i09Xvh2D8ethEufUbLLmFLjjBRmUWvyNt0xhmarW0RX7h-XJeGUQ98uKMpLGkaQrOqZJXiyOgmQSHTek6mHjiUXT0rKZPN0HVFYAM6I6cS3vzdG0xZC6COZdVYaVt-t10tezeuMSEjv_XhpFV0h_pRI2cA20ulaW1bCAYvWmgQQsD7HhAnI84M2aZYmHLLbrGHiCNWAEUM-8fjOHdkgYsRTDiznUOO10ajfLeS57SbJ1hI9HfL-tSHB1bze2aXpWC5TjZsUsE-pyRI4TBaQsue4"} 2024-08-08 15:14:29.488 DEBUG (MainThread) [alexapy.alexalogin] Exchange cookie json {'tokens': {'cookies': {'.amazon.fr': [{'Path': '/', 'Secure': True, 'Value': '258-8207373-6641066', 'Expires': '3 Aug 2044 13:14:29 GMT', 'HttpOnly': False, 'Name': 'session-id'}, {'Path': '/', 'Secure': True, 'Value': '258-4020533-8015941', 'Expires': '3 Aug 2044 13:14:29 GMT', 'HttpOnly': False, 'Name': 'ubid-acbfr'}, {'Path': '/', 'Secure': True, 'Value': '"Nbcn3bk4CJ@N1vyN0BsBoPaVr5VUIIFz"', 'Expires': '3 Aug 2044 13:14:29 GMT', 'HttpOnly': False, 'Name': 'x-acbfr'}, {'Path': '/', 'Secure': True, 'Value': '"Atza|IwEBILbd1tIij1R5NyDwj8OAwu_SpozKvp6BYmHWwziGLUXUibaLdb0BSCDMDPNd6z_f73RGBu6QQ6HBqjd47BxJVgN5XkTQeObfjEpn24cX4zOm3IcF_B_EPVWnm4VpQA9m8uiq3LpJiAoGHS-HRhRKJIkhAWvHz5kJlwO0m9chBKI6_7rusO_Rt0ec0kf4-EW4RrxZ49YodxXJxSaX6z8bHAm3TZ6dtnvqr24fp1z4WT0ZX2n6xh5_uEptSyn3FQ0pGm9ENMYdV3mYDUs_o7LskNe9Vo-u_HHLxNL2L0Bqru1xAzX4QTbOzU6v3JIWIZOOXDBR1ia21Rcwy78E0DnR4rB_2k8_jJnnkbek7-2kldb95c2YGNfF4ieb9TcFQh-st2r4Tpu6_wy5U06Ypq0vbqX0"', 'Expires': '9 Aug 2024 13:14:29 GMT', 'HttpOnly': True, 'Name': 'at-acbfr'}, {'Path': '/', 'Secure': True, 'Value': '"d6tSZan9I+bMr/cNN4gmf3juSwLNdHuew3N2tQgpILE="', 'Expires': '9 Aug 2024 13:14:29 GMT', 'HttpOnly': True, 'Name': 'sess-at-acbfr'}]}}} 2024-08-08 15:14:29.489 DEBUG (MainThread) [alexapy.alexalogin] 5 cookies successfully exchanged for refresh token for domain .amazon.fr 2024-08-08 15:14:29.489 DEBUG (MainThread) [alexapy.alexalogin] Attempting to discover CSRF token 2024-08-08 15:14:31.580 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /spa/index.html 2024-08-08 15:14:31.632 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: <ClientResponse(https://alexa.amazon.fr/api/language) [401 Unauthorized]> <CIMultiDictProxy('Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:31 GMT', 'Strict-Transport-Security': 'max-age=0; includeSubDomains;', 'x-amz-rid': 'SJ4Y0ZZ414GE6CAY4HSA', 'loginUrl': 'https://www.amazon.fr/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.fr%2Flogin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=amzn_dp_project_dee_fr&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&', 'x-amzn-RequestId': 'SJ4Y0ZZ414GE6CAY4HSA', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 b635e2b1f0ae92160e68ba87d10e2754.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG55-P3', 'X-Amz-Cf-Id': '8SRCB5dNfglwQMYT83BK1TdlsDXWhUCDujBku4rUTZSdW3SB3cx0dw==')>

2024-08-08 15:14:31.739 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /api/devices-v2/device?cached=false 2024-08-08 15:14:31.794 DEBUG (MainThread) [alexapy.alexalogin] CSRF token not found from /templates/oobe/d-device-pick.handlebars 2024-08-08 15:14:31.839 DEBUG (MainThread) [alexapy.alexalogin] Unable to load page for csrf: <ClientResponse(https://alexa.amazon.fr/api/strings) [401 Unauthorized]> <CIMultiDictProxy('Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:31 GMT', 'Strict-Transport-Security': 'max-age=0; includeSubDomains;', 'x-amz-rid': 'Y64Q6PQK4135Q9ZFE1AF', 'loginUrl': 'https://www.amazon.fr/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.fr%2Flogin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=amzn_dp_project_dee_fr&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&', 'x-amzn-RequestId': 'Y64Q6PQK4135Q9ZFE1AF', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 09d324ff4ef3ad9ee0e07d2d9be971c8.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG55-P3', 'X-Amz-Cf-Id': 'jwndwMAIMGRkcwXbZl1DsZc9jZweeo-7ex-I_05pu_6S9uU4icNLfQ==')>

2024-08-08 15:14:31.839 DEBUG (MainThread) [alexapy.alexalogin] No csrf token found 2024-08-08 15:14:34.132 DEBUG (MainThread) [alexapy.alexalogin] GET: https://alexa.amazon.com/api/bootstrap with <CIMultiDictProxy('Host': 'alexa.amazon.com', 'User-Agent': 'AmazonWebView/Amazon Alexa/2.2.556530.0/iOS/16.6/iPhone', 'Accept': '/', 'Accept-Language': '', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Accept-Encoding': 'gzip, deflate, br', 'Cookie': 'at-main=Atza|IwEBILMqHpSQ9_QTh9q2FmhvVYiiV8Mr4qgyaXqqKau-CjLTIJmCQJWoOACIRAhYY0Yol7a1r4jahmd0Yr83bclfuqcyvvFWl3sCLay6Q_l413gFVhuMzJw80xlOQcn5gQzlkp7sjLatt5-sxUxOPbNNjJMt4SoNbH3SYAp5Bf_8YENFAUQ4Qr7pUqZZVdRPVq7N3oqEfD2-WgDLRNDb4vKjQx0Y41B1FkT-VyGSQmi3HmILTKuTtRUnco62rLlkNH1nHa17ggrhPj2ucU_iBsdiF7nZBFN4okrgnXvCtPsGMcxvxQ; lc-main=fr_FR; sess-at-main="\"TMrEMdDk1HlxUj0c+3jpxLmmV5GUB1bjJQ+RuPH8/CY=\""; session-id=139-0646898-6424646; session-id-time=2353842864l; session-token="\"P5auPnVwHSDt1VHHWNc4h9IQ9CxYIGEoBRx2DN8EMDDHLbI4rgmZZRHnSVSk84ko5TFh3xZpYSx4SVMEVe5Kba/jWc/aLee+VZcLgQhn9K3eUsvSZ/5WxYsd8zQ/bH4QKvcD0sRbsoYLrd8N4NJKt+EE+JGvIEJPUQrvgMLOJQL6tx+WLug7JEuDQ+nmo4UXKZmx62+IwfgxXx6e01+0WlQu4h35kwMd9cw1tw7XfvrRk7/ibwzZckGzZwidjS3eKA01CsEMW0grr3PaPyyUWmmcsZhhZw+svD2BCAUOzOj2jODWRqJUgwj8hgVUaZ67Ka2MxPq6561if0tzQIFH+LdXzpXjTC12fGTvVkqsQwxgEPh0reVmLg==\""; sid="\"Rdn4uH53/fBCYTR70HqCOQ==|0AGDM2MDhlL6ueXy+W6ZVL/HclJRi081YeRS7aAFW7c=\""; ubid-main=131-5274571-7501223; x-main=dxRkaW2IagrYXyhmyqJfRfZPJgALB7Op')> returned 200:OK with response <CIMultiDictProxy('Content-Type': 'application/json', 'Content-Length': '178', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:34 GMT', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'x-amz-rid': 'SR18B7JGK7V5J02H7GK9', 'Set-Cookie': 'csrf=-972842568; expires=Tue, 08-Aug-2034 13:14:33 GMT; Domain=.amazon.com; Path=/', 'X-Amzn-Alt-Domain': 'https://alexa.amazon.fr/logout', 'X-Amzn-Requestid': 'SR18B7JGK7V5J02H7GK9', 'X-Cache': 'Miss from cloudfront', 'Via': '1.1 44849808df37ecbde0b3891640783c20.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG52-P6', 'X-Amz-Cf-Id': 'Qb6PtziFCr6iDPhWxAmBFF8ZC1v_vsR9bVin-IdQiW63hTixDaMBHg==')> 2024-08-08 15:14:34.168 DEBUG (MainThread) [alexapy.alexalogin] GET: https://alexa.amazon.fr/api/bootstrap with <CIMultiDictProxy('Host': 'alexa.amazon.fr', 'User-Agent': 'AmazonWebView/Amazon Alexa/2.2.556530.0/iOS/16.6/iPhone', 'Accept': '/', 'Accept-Language': '', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Accept-Encoding': 'gzip, deflate, br', 'Cookie': 'at-main=Atza|IwEBILMqHpSQ9_QTh9q2FmhvVYiiV8Mr4qgyaXqqKau-CjLTIJmCQJWoOACIRAhYY0Yol7a1r4jahmd0Yr83bclfuqcyvvFWl3sCLay6Q_l413gFVhuMzJw80xlOQcn5gQzlkp7sjLatt5-sxUxOPbNNjJMt4SoNbH3SYAp5Bf_8YENFAUQ4Qr7pUqZZVdRPVq7N3oqEfD2-WgDLRNDb4vKjQx0Y41B1FkT-VyGSQmi3HmILTKuTtRUnco62rLlkNH1nHa17ggrhPj2ucU_iBsdiF7nZBFN4okrgnXvCtPsGMcxvxQ; lc-main=fr_FR; sess-at-main="\"TMrEMdDk1HlxUj0c+3jpxLmmV5GUB1bjJQ+RuPH8/CY=\""; session-id=259-9122288-4567569; session-id-time=2353842871l; session-token=q56vw/ZoGI+uGFbcMqUShT4gNcKXJBu9qELHfrFznEX0BzKKmqdXEBdyC49WRZb2P7+faHB7N7QiAckGESk3PoRpPHTo7bwcQddcodTKOmhyvtHT70g40JDZpvoFBq8YCbRH15ctHsI7XDXfRN/+5g/GtlOy/Pqs5rz4U5hNO+Ve1/t8E4t0B/uYxUCmSzAsskhvm/SgrvSq6rIRj6RiiJyWuRFQExSSb+EKBMEr8/97fXdh8QLC/6g0zWKb+1G8lCTqJ7Bdiuu4mrT9iOWTG6/qdtr+Jws0RSBbOIMqRY7EKiOGeD4igo7/QJXDNY+fBleSPkyubl0fLkjXAJSXIAYsMSibLkcQc1Dg62aob2919YgVJ48IgEPfA+gGCkDd; sid="\"Rdn4uH53/fBCYTR70HqCOQ==|0AGDM2MDhlL6ueXy+W6ZVL/HclJRi081YeRS7aAFW7c=\""; ubid-acbfr=131-5274571-7501223; ubid-main=131-5274571-7501223; x-main=dxRkaW2IagrYXyhmyqJfRfZPJgALB7Op')> returned 401:Unauthorized with response <CIMultiDictProxy('Content-Length': '0', 'Connection': 'keep-alive', 'Server': 'Server', 'Date': 'Thu, 08 Aug 2024 13:14:34 GMT', 'Strict-Transport-Security': 'max-age=0; includeSubDomains;', 'x-amz-rid': 'NEFWPJB7WMDGYW599Q3R', 'loginUrl': 'https://www.amazon.fr/ap/signin?showRmrMe=1&openid.return_to=https%3A%2F%2Falexa.amazon.fr%2Flogin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=amzn_dp_project_dee_fr&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&', 'x-amzn-RequestId': 'NEFWPJB7WMDGYW599Q3R', 'Vary': 'Content-Type,Accept-Encoding,User-Agent', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 09d324ff4ef3ad9ee0e07d2d9be971c8.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'CDG55-P3', 'X-Amz-Cf-Id': 'xUFCGS8voOdYDhbr7rVaVyb3T74yVwQmB-cClplmprdGesVzSECu4Q==')> 2024-08-08 15:14:34.168 DEBUG (MainThread) [alexapy.alexalogin] Not logged in: An exception of type ContentTypeError occurred. Arguments: (RequestInfo(url=URL('https://alexa.amazon.fr/api/bootstrap'), method='GET', headers=<CIMultiDictProxy('Host': 'alexa.amazon.fr', 'User-Agent': 'AmazonWebView/Amazon Alexa/2.2.556530.0/iOS/16.6/iPhone', 'Accept': '/', 'Accept-Language': '*', 'DNT': '1', 'Upgrade-Insecure-Requests': '1', 'Accept-Encoding': 'gzip, deflate, br', 'Cookie': 'at-main=Atza|IwEBILMqHpSQ9_QTh9q2FmhvVYiiV8Mr4qgyaXqqKau-CjLTIJmCQJWoOACIRAhYY0Yol7a1r4jahmd0Yr83bclfuqcyvvFWl3sCLay6Q_l413gFVhuMzJw80xlOQcn5gQzlkp7sjLatt5-sxUxOPbNNjJMt4SoNbH3SYAp5Bf_8YENFAUQ4Qr7pUqZZVdRPVq7N3oqEfD2-WgDLRNDb4vKjQx0Y41B1FkT-VyGSQmi3HmILTKuTtRUnco62rLlkNH1nHa17ggrhPj2ucU_iBsdiF7nZBFN4okrgnXvCtPsGMcxvxQ; lc-main=fr_FR; sess-at-main="\"TMrEMdDk1HlxUj0c+3jpxLmmV5GUB1bjJQ+RuPH8/CY=\""; session-id=259-9122288-4567569; session-id-time=2353842871l; session-token=q56vw/ZoGI+uGFbcMqUShT4gNcKXJBu9qELHfrFznEX0BzKKmqdXEBdyC49WRZb2P7+faHB7N7QiAckGESk3PoRpPHTo7bwcQddcodTKOmhyvtHT70g40JDZpvoFBq8YCbRH15ctHsI7XDXfRN/+5g/GtlOy/Pqs5rz4U5hNO+Ve1/t8E4t0B/uYxUCmSzAsskhvm/SgrvSq6rIRj6RiiJyWuRFQExSSb+EKBMEr8/97fXdh8QLC/6g0zWKb+1G8lCTqJ7Bdiuu4mrT9iOWTG6/qdtr+Jws0RSBbOIMqRY7EKiOGeD4igo7/QJXDNY+fBleSPkyubl0fLkjXAJSXIAYsMSibLkcQc1Dg62aob2919YgVJ48IgEPfA+gGCkDd; sid="\"Rdn4uH53/fBCYTR70HqCOQ==|0AGDM2MDhlL6ueXy+W6ZVL/HclJRi081YeRS7aAFW7c=\""; ubid-acbfr=131-5274571-7501223; ubid-main=131-5274571-7501223; x-main=dxRkaW2IagrYXyhmyqJfRfZPJgALB7Op')>, real_url=URL('https://alexa.amazon.fr/api/bootstrap')), ())

Additional context

github-actions[bot] commented 3 months ago

@bouboun59 this issue was automatically closed because it did not follow the issue template and this warning: 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.