🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    libs.urequests.request() Error in M5ATOM Lite

    Bug Report
    1
    1
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peter
      last edited by Peter

      Unfortunately, the requests module does not work in the M5ATOM Lite firmware:

      req = libs.urequests.request(method='GET', url='https://api.github.com/repos/kapest007/My-Micropython-OTA-Updater/releases/latest', headers={'Content-Type': 'text/html', 'User-Agent': 'kapest007'})
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "libs/urequests.py", line 60, in request
      OSError: [Errno 12] ENOMEM

      In the M5Stick C Plus and M5STAMP Pico it does what it should.

      I have tried this with the current firmware 1.11.8.
      I hope the problem can be fixed in the next firmware release.

      Peter

      1 Reply Last reply Reply Quote 0
      • First post
        Last post