Closed jasonwashburn closed 2 years ago
I am seeing the same results on PyPortal with 7.1.1
and 7.2.0-alpha.1
Also confirmed same error with version 1.10.4
of this library.
Very strange... Same error on PyPortal with 7.1.0
and 7.0.0
@FoamyGuy could https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/pull/151 explain this issue? They added a recv_into()
method in that PR but it only accepts one argument (buffer
), while in adafruit_requests
we pass two arguments (buf
, and size
).
Issue is not present on FunHouse 7.2.0-alpha.1-163-g1cd3faa06
. So it does appear to be somewhat limited. That PR in ESP32SPI does look like it could be related.
Confirmed issue is not present with version 3.5.14
of ESP32SPI library so I think you've narrowed it down correctly to that change.
Transferred to ESP32SPI. This is where it will need to be fixed I believe.
recv_into() declared here: https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/52208e4752bee510b24ac775763776231b5912cc/adafruit_esp32spi/adafruit_esp32spi_socket.py#L164
only has one parameter. But the requests library is written to pass in two arguments here: https://github.com/adafruit/Adafruit_CircuitPython_Requests/blob/main/adafruit_requests.py#L241
I think the recv_into() method here will need to accept a second argument for size.
Oops! Didn't realize it needed a second parameter when I implemented it not long ago. Thanks y'all, hot fix PR submitted!
Resolved by #155
Any time I try to use the requests library on my Pyportal since upgrading to CircuitPython 7.1.1 I get the following error:
I've tried multiple example files that use the library with the same result. The currently loaded version is the code below.
I'm currently running CircuitPython 7.1.1 Stable with the adafruit_requests library from adafruit-circuitpython-requests-7.x-mpy-1.10.5.zip