Basic question about HTTP audio element

iwbnwif
Posts: 1
Joined: Wed Mar 08, 2023 10:34 am

Basic question about HTTP audio element

Postby iwbnwif » Wed Mar 08, 2023 10:56 am

I have a fresh install of ESP-IDF and ESP-ADF on Ubuntu 22.04.

IDF is version 4.4.4 and ADF is Github master.

The complete toolchain builds and I am able to flash and run some IDF and ADF examples. However, I am encountering a problem with the ADF

Code: Select all

pipeline_bt_source example
.

The relevant messages are as follows:

Code: Select all

E (15158) esp-tls: couldn't get hostname for :dl.espressif.com: getaddrinfo() returns 202, addrinfo=0x0
E (15158) esp-tls: Failed to open new connection
E (15158) TRANSPORT_BASE: Failed to open a new connection
E (15168) HTTP_CLIENT: Connection failed, sock < 0
E (15168) HTTP_STREAM: Failed to open http stream
I read this issue https://github.com/espressif/esp-va-sdk/issues/180 and unchecked

Code: Select all

Enable mbedtls time support
in menuconfig.

I also read this issue https://github.com/espressif/esp-adf/issues/856 and checked

Code: Select all

Allow potentially insecure options
and

Code: Select all

Skip server certificate verification by default
, but still receive the same errors.

Side question, is it necessary to rebuild 1500+ files for every change in menuconfig or is idf.py build the wrong call after making changes?

tempo.tian
Posts: 40
Joined: Wed Jun 22, 2022 12:10 pm

Re: Basic question about HTTP audio element

Postby tempo.tian » Wed Mar 15, 2023 7:02 am

The mentioned issue is a network issue.
You can replace https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.mp3 to a valid address that you can access.
Also you can try to ping espressif.com to check whether success or not
g_stream$ ping espressif.com
PING espressif.com (143.204.215.83) 56(84) bytes of data.

Who is online

Users browsing this forum: No registered users and 15 guests