Skip to content
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

Http request fails with ENOMEM #5355

Closed
DonJayamanne opened this issue Nov 24, 2019 · 3 comments
Closed

Http request fails with ENOMEM #5355

DonJayamanne opened this issue Nov 24, 2019 · 3 comments

Comments

@DonJayamanne
Copy link

Got an ESP32 (M5Stack), and making a simple Https request fails.
Tried soft reset and reboot.
Copied source from urequests and ran it manually with gc.collect at everypoint.
Still fell over at the same place.

Falls over when executing s = ussl.wrap_socket(s, server_hostname=host).
Bombs with Error 12, ENOMEM

@jimmo
Copy link
Member

jimmo commented Nov 24, 2019

Which firmware version are you using? How many concurrent HTTP requests are you doing and/or does it always fail on the first request or only on subsequent ones?

This is quite possibly related to #5303 , in which case you might have more luck with an IDF3 build, or a newer IDF4 build.

FYi, despite the ENOMEM error, the memory used by wrap_socket doesn't come from the MicroPython heap, which is why gc.collect() does not help.

@enesbcs
Copy link

enesbcs commented May 14, 2021

Seems similar than #7038

@jimmo
Copy link
Member

jimmo commented Jul 21, 2022

This issue is now being tracked in #8940.

@jimmo jimmo closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants