espressif / esp-va-sdk

Espressif's Voice Assistant SDK: Alexa, Google Voice Assistant, Google DialogFlow
Other
292 stars 83 forks source link

Alexa can not operate. Error log > esp-tls: 'couldn't get hostname for :api.amazon.com:' and '[alexa]: Waiting for authentication tokens.' #179

Closed luvinland closed 1 year ago

luvinland commented 2 years ago

I found the same issue history in the link below. https://github.com/espressif/esp-va-sdk/issues/161#issuecomment-1034536095 Last update 2022 on Mar 1

I couldn't find a workaround. Is there any workaround?

Error log. >

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:6836 load:0x40078000,len:10792 load:0x40080400,len:6528 entry 0x40080720 I (60) boot: Chip Revision: 1 I (62) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (38) boot: ESP-IDF v3.2.3-169-g7e416fec1-dirty 2nd stage bootloader I (38) boot: compile time 11:40:05 I (39) boot: Enabling RNG early entropy source... I (45) qio_mode: Enabling default flash chip QIO E (50) qio_mode: Failed to set QIE bit, not enabling QIO mode I (56) boot: SPI Speed : 80MHz I (60) boot: SPI Mode : DIO I (64) boot: SPI Flash Size : 8MB I (69) boot: Partition Table: I (72) boot: ## Label Usage Type ST Offset Length I (79) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (87) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (94) boot: 2 factory factory app 00 00 00010000 00410000 I (102) boot: End of partition table I (106) boot_comm: chip revision: 1, min. application chip revision: 0 I (113) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2946dc (2705116) map I (875) esp_image: segment 1: paddr=0x002a4704 vaddr=0x3ffbdb60 size=0x05200 ( 20992) load I (882) esp_image: segment 2: paddr=0x002a990c vaddr=0x40080000 size=0x00400 ( 1024) load 0x40080000: _WindowOverflow4 at C:/msys32/home/S1909001/esp/esp-idf/components/freertos/xtensa_vectors.S:1779

I (883) esp_image: segment 3: paddr=0x002a9d14 vaddr=0x40080400 size=0x062fc ( 25340) load I (899) esp_image: segment 4: paddr=0x002b0018 vaddr=0x400d0018 size=0x1485f8 (1345016) map 0x400d0018: _stext at ??:?

I (1274) esp_image: segment 5: paddr=0x003f8618 vaddr=0x400866fc size=0x13d88 ( 81288) load 0x400866fc: tx_pwctrl_cal at /home/aiqin/git_tree/chip7.1_phy/chip_7.1/board_code/app_test/pp/phy/phy_chip_v7_cal.c:2469 (discriminator 1)

I (1318) boot: Loaded app from partition at offset 0x10000 I (1318) boot: Disabling RNG early entropy source... [app_main]: Starting provisioning [conn_mgr_prov]: Provisioning started with: service name: ESP-Alexa-32A8 service key: proof of possession (pop): abcd1234 W (252554) wifi: Error! Should use default active scan time parameter for WiFi scan when Bluetooth is enabled!!!!!!

[conn_mgr_prov]: Scan results: S.N. SSID RSSI [ 0] Jace Lee's iPhone -34

[avs_config]: APP Got: ANgvtelCcDJQtgqbhvnN, amzn1.application-oa2-client.e8c06545d9764a05b8b6d91eecfeb23a, amzn-com.espressif.provbleavs://?methodName=signin, abcd1234 [auth-delegate]: Auth delegate with comp app: ANgvtelCcDJQtgqbhvnN, amzn1.application-oa2-client.e8c06545d9764a05b8b6d91eecfeb23a, amzn-com.espressif.provbleavs://?method Name=signin, abcd1234E (299964) esp-tls: couldn't get hostname for :api.amazon.com: E (299974) esp-tls: Failed to open new connection E (299984) httpc: Failed to create a new TLS connection E (299984) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (299994) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning [conn_mgr_prov_handler]: WiFi Credentials Received: ssid: Jace Lee's iPhone password: 01028229351 E (300514) esp-tls: couldn't get hostname for :api.amazon.com: E (300514) esp-tls: Failed to open new connection E (300514) httpc: Failed to create a new TLS connection E (300514) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (300524) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (301044) esp-tls: couldn't get hostname for :api.amazon.com: E (301044) esp-tls: Failed to open new connection E (301044) httpc: Failed to create a new TLS connection E (301044) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (301054) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (301574) esp-tls: couldn't get hostname for :api.amazon.com: E (301574) esp-tls: Failed to open new connection E (301574) httpc: Failed to create a new TLS connection E (301574) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (301584) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning [app_main]: Connected with IP Address: 172.20.10.14 E (305144) esp-tls: global_cacert is NULL E (305154) esp-tls: Failed to open new connection E (305154) httpc: Failed to create a new TLS connection E (305154) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (305164) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (306134) esp-tls: global_cacert is NULL E (306134) esp-tls: Failed to open new connection E (306134) httpc: Failed to create a new TLS connection E (306134) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (306144) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (307074) esp-tls: global_cacert is NULL E (307074) esp-tls: Failed to open new connection E (307074) httpc: Failed to create a new TLS connection E (307074) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (307084) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (308084) esp-tls: global_cacert is NULL E (308084) esp-tls: Failed to open new connection E (308084) httpc: Failed to create a new TLS connection E (308084) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (308094) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (309004) esp-tls: global_cacert is NULL E (309004) esp-tls: Failed to open new connection E (309004) httpc: Failed to create a new TLS connection E (309004) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (309014) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (310034) esp-tls: global_cacert is NULL E (310034) esp-tls: Failed to open new connection E (310034) httpc: Failed to create a new TLS connection E (310044) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (310054) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning E (310944) esp-tls: global_cacert is NULL E (310944) esp-tls: Failed to open new connection E (310944) httpc: Failed to create a new TLS connection E (310954) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (310964) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning [conn_mgr_prov]: Provisioning stopped [alexa]: Waiting for time to be updated E (311844) esp-tls: global_cacert is NULL E (311844) esp-tls: Failed to open new connection E (311844) httpc: Failed to create a new TLS connection E (311854) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (311854) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning [alexa]: Done getting current time: 1668569285 [alexa]: Waiting for authentication tokens. E (313254) esp-tls: mbedtls_ssl_handshake returned -0x2700 E (313264) esp-tls: Failed to open new connection E (313264) httpc: Failed to create a new TLS connection E (313264) [auth-delegate]: Failed to connect to Auth URL "https://api.amazon.com/auth/O2/token" E (313274) [auth-delegate]: Authentication attempt failed. Retrying. Please check connectivity and/or credentials. In case of authentication failure try resetting the dev ice to factory mode and restart provisioning [alexa]: Waiting for authentication tokens.

avsheth commented 1 year ago

Duplicate of https://github.com/espressif/esp-va-sdk/issues/180