Skip to content

Http request fails with ENOMEM  #5355

Description

@DonJayamanne

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

Activity

  1. jimmo commented on Nov 24, 2019

    @jimmo
    Member

    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.

  2. enesbcs commented on May 14, 2021

    @enesbcs

    Seems similar than #7038

  3. jimmo commented on Jul 21, 2022

    @jimmo
    Member

    This issue is now being tracked in #8940.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions