You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to send a simple GET request to a host. Everything is fine but after the second or third request I will get an OSError: -2. The code I use is simple:
from urequests import get
>>> get('http://mrl33h.de/')
<Response object at 3fff2250>
>>> get('http://mrl33h.de/')
<Response object at 3fff2840>
>>> get('http://mrl33h.de/')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "urequests.py", line 101, in get
File "urequests.py", line 51, in request
OSError: -2
I can not really put my finger on what's wrong here. I'm using MicroPython v1.8.7-7-gb5a1a20a3 from 09.01.2017.
The text was updated successfully, but these errors were encountered:
Ah I see. This solves the issue. Thank you for that. It is a bit confusing though because I wouldn' t expect to need to close my response object. How about using a context manager instead?
I am trying to send a simple
GET
request to a host. Everything is fine but after the second or third request I will get an OSError: -2. The code I use is simple:I can not really put my finger on what's wrong here. I'm using MicroPython v1.8.7-7-gb5a1a20a3 from 09.01.2017.
The text was updated successfully, but these errors were encountered: