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
# Placeholder issue: no minimal example at this time. Only happens on some URLs. # Not sure if the right answer is to simplify the library or increase pystack.
Behavior
# using latest release adafruit_wiznet5k v1.12.18
Traceback (most recent call last):
File "code.py", line 111, in get_http
File "adafruit_requests.py", line 823, in get
File "adafruit_requests.py", line 662, in request
File "adafruit_requests.py", line 498, in _get_socket
File "adafruit_wiznet5k/adafruit_wiznet5k_socket.py", line 107, in getaddrinfo
File "adafruit_wiznet5k/adafruit_wiznet5k_socket.py", line 118, in gethostbyname
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 272, in get_host_by_name
File "adafruit_wiznet5k/adafruit_wiznet5k_dns.py", line 101, in gethostbyname
File "adafruit_wiznet5k/adafruit_wiznet5k_dns.py", line 122, in _parse_dns_response
File "adafruit_wiznet5k/adafruit_wiznet5k_socket.py", line 581, in available
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 640, in socket_available
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 889, in socket_read
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 1056, in _get_rx_rcv_size
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 1097, in _read_snrx_rsr
File "adafruit_wiznet5k/adafruit_wiznet5k.py", line 1156, in _read_socket
RuntimeError: pystack exhausted
Description
No response
Additional information
The hardware config is a QT Py ESP32-S2 wired to a WIZnet W5100S Pico hat.
The text was updated successfully, but these errors were encountered:
Might this be solved by refactoring Wiznet5k? At the moment, wiznet5k_socket.gethostbyname calls wiznet5k.get_host_by_name which instantiates an instance of wiznet5k-dns.DNS and calls DNS.gethostbyname which instantiates a wiznet5k_socket.socket and makes calls to socket.send and socket.recv which calls WIZNET5k.socket_write.
This could be refactored into wiznet5k_socket.gethostbyname with a couple of functions to build and parse DNS messages and calls to the `WIZNET5K instance that is already linked to the sockets module.. The Wiznet5k DNS module could be removed completely.
CircuitPython version
Code/REPL
Behavior
Description
No response
Additional information
The hardware config is a QT Py ESP32-S2 wired to a WIZnet W5100S Pico hat.
The text was updated successfully, but these errors were encountered: