-
Notifications
You must be signed in to change notification settings - Fork 7.6k
DNS failure when using WiFiClientSecure in idf-release/v4.0 branch #4457
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
Comments
|
@lbernstone Sorry for not giving a specific version, but AFAIK PIO uses the idf-release/4.0 branch of this repo. I suspect it's a bug in this repo because it's caused by
I will try to run the example in the repo for |
@matthew798 you are making a blocking call from the event task. The event task is running at a higher priority than the dns task likely. You should do very limited API calls inside event callbacks and instead move your connection calls to loop() or similar task that is not the event task |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Hardware:
Board: ESP32 DoIt devkit
Core Installation version: idf-release/v4.0
IDE name: Platform.io / IDF component?
Flash Frequency: 40Mhz
Computer OS: Manjaro (Arch)
Description:
Using WiFiClientSecure to connect to anything results in a DNS failure, and subsequently an error in freertos/event_groups.c.
I tried with and without the calls to
dns_setserver
.The line that is causing the failed
assert
in event_groups.c is:The CA cert being used is the one from the example file from this repo.
I tried manually patching in the changed from this PR but it made no difference.
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: