You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IDF version (git rev-parse --short HEAD to get the commit id.): 7313e39
Development Env: [Make]
Operating System: [openSuse]
Power Supply: [USB|Battery]
Problem Description
I want to access a http://server/path url with esp_http_client in asynchronous mode but the core crashes.
Expected Behavior
Server is connected the same way as when is_async = false.
Actual Behavior
Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.
In case of is_async = true, function esp_http_client_connect() calls esp_transport_connect_async(), but the member _connect_async is not set for transport_tcp. NULL pointer is dereferenced and core panics.
The text was updated successfully, but these errors were encountered:
Alvin1Zhang
changed the title
esp_http_client crashes with is_async for non-ssl url
[TW#26962] esp_http_client crashes with is_async for non-ssl url
Oct 24, 2018
@devsaurus Thanks for bringing this to our notice. As of now, only asynchronous HTTPS connections are supported. Though it shouldn't have crashed for http URL, which will be resolved soon. And support for async HTTP wasn't added because it involved some changes in existing APIs, but it will be added soon.
Environment
git rev-parse --short HEAD
to get the commit id.): 7313e39Problem Description
I want to access a
http://server/path
url withesp_http_client
in asynchronous mode but the core crashes.Expected Behavior
Server is connected the same way as when
is_async = false
.Actual Behavior
In case of
is_async = true
, functionesp_http_client_connect()
callsesp_transport_connect_async()
, but the member_connect_async
is not set for transport_tcp. NULL pointer is dereferenced and core panics.Steps to reproduce
Compile the example below and execute. The example is an excerpt from https://github.com/espressif/esp-idf/blob/129d32772e5e5eafe88be5b9eb34687e84a6f8b8/examples/protocols/esp_http_client/main/esp_http_client_example.c
Code to reproduce this issue
The text was updated successfully, but these errors were encountered: