-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPClient with TLS : Exception 29 #2789
Comments
@olileger You can use this change to make the code work at this time. I'm also working on self-signed CA to azure iot hub but also failed. |
Hi :) Of course I could rely on the Azure IoT Hub library but I would like to only rely on the ESP8266 lib. By the way I also got an exception when trying to connect to a mockable.io endpoint so I guess it's not related to the endpoint itself but more on the type of certificate. Olivier. |
I finally got my answer :)
This is the case on my configuration : a local webserver to setup my MCU and also trying to connect to an HTTPS endpoint. @igrr : is there any way to have insight about how much RAM is used by the WiFiClientSecure library ? |
@olileger from what I have seen if you turn on all ESP debugging in the IDE and select debug port of Serial it will show you all manner of things including RAM being used by the WiFiClientSecure library etc. |
@pieman64 interesting, do you have any pointers to article about that please ? |
@olileger presumably you are using the Arduino IDE as this GitHub specifically relates to that. It's accessed from Tools menu in the IDE. |
@pieman64 I guess you are talking about the ESP Exception Decoder tool ? |
Met the same error here when trying to use HTTPClient to make https request while having already a WiFiClientSecure client for azure iot hub. It would be totally ok for http reqeusts. Not sure how much memory needed to make a https call, but check the heap size left, ~34K, well, seems not enough. Adafruit HUZZAH ESP8266 Stack trace from Exception Decode:
|
Print heap size when set up and after send a https request, turns out it takes about ~18K to make a https request. |
@olileger is this issue still valid with latest git? |
So I guess I am running into the same issue. But when I add this same working code to my complete setup, which also contains several other components like a small webserver, I get a Exception (29) between client.connect() and waiting for it to become connected(). Free heap about 11k before the client starts. :( EDIT: Sadly, even when I remove the webserver, the client starts with about 24k heap and still fails with an Exception (29). |
BearSSL is merged in #4273 , with alternate BearSSL::WiFi* classes. Although axtls-based classes are still available and even the default, they are planned for deprecation and then retirement, hence won't be fixed. Any issues with BearSSL-based classes should be reported in new issues. |
Basic Infos
I got
Fatal exception 29(StoreProhibitedCause)
when trying to connect to secured public endpoint over HTTPS.The public endpoint is an Azure IoT Hub URI.
I don't have any error when connecting to my local secured endpoint (self-signed certificate) through HTTPS.
Unforetunately the ESP Exception decoder tool doesn't recognize my stack trace (file is not recognize, I don't know why) so I'm not able to understand the issue and fix it.
Is anyone able to decode it for me please ? Very appreciated :)
Is there any guidelines & FAQ related to the TLS support ? Something like cipher suite limitation, TLS version supported or any other limits.
Hardware
Hardware: ESP8266 (WeMos D1 Mini)
Core Version: 2.3.0
Settings in IDE
Module: WeMos D1 Mini
Flash Size: 4MB
CPU Frequency: 80Mhz
Sketch
Debug Messages & Stack trace
The text was updated successfully, but these errors were encountered: