Skip to content

urequest HTTPS get request OSError-202  #7061

Description

@bodemax

Hi,

I have a php file where i ping whit my esp32. It has a interval of 10 sec. The first few minutes are running fine but after a while i got a OSErrro -202. I foud this only happens whit https and not http. but i have no other option

the request code:

print("I wil ping to " , str(urlPing + '?mac=' + str(mac)))
r = requests.get(urlPing + '?mac=' + str(mac))
rText = r.text
r.close()
print(rText)
the urlPing is a https://www.xxxx.xxx.php (do to sucerty reasons i cannot show the full link)
If the mac addres is valid it will respond "ok" and if it is not valid "no valid mac".

this is the error i get:
File "urequests.py", line 108, in get
File "urequests.py", line 53, in request
OSError: -202

when the errors happens it never stop. try except, reconnect to wifi. only a hardreset

esp32 has 512 KB memory.

If you could help me I am really grateful.

Tanks in advace,
Maxim

Activity

  1. jimmo commented on Jul 21, 2022

    @jimmo
    Member

    This issue is now being tracked in #8940.

  2. added a commit that references this issue on Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions