#I have a PyPortal Titano that identifies

1 messages · Page 1 of 1 (latest)

muted wharf
#

@honest tundra starting a thread on this.

#

I changed the JSON_URL in the standard wifitest to fetch https://openaccess-api.clevelandart.org/api/artworks?cc0=1&has_image=1&indent=2&limit=1&skip=9786. It fails as usual:

Fetching json from https://openaccess-api.clevelandart.org/api/artworks?cc0=1&has_image=1&indent=2&limit=1&skip=9786
Traceback (most recent call last):
  File "adafruit_requests.py", line 519, in _get_socket
  File "adafruit_esp32spi/adafruit_esp32spi_socket.py", line 62, in __init__
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 674, in get_socket
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 332, in _send_command_get_response
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 299, in _wait_response_cmd
  File "adafruit_esp32spi/adafruit_esp32spi.py", line 278, in _wait_spi_char
TimeoutError: Timed out waiting for SPI char

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "wifitest.py", line 83, in <module>
  File "adafruit_requests.py", line 823, in get
  File "adafruit_requests.py", line 668, in request
  File "adafruit_requests.py", line 515, in _get_socket
RuntimeError: Sending request failed
#

This is on th 1.2.2 TItano

honest tundra
#

Drat, looks like the same root cause but a slightly different error message for the timeout error. Is your titano on 8.2.7? That was one of the first things I did yesterday so I'm sure mine was at the time of successes.

muted wharf
#

it is 8.2.6

#

I also tried http instead of https and got the same error, hmm. let me try some more things

#

https://openaccess-api.clevelandart.org/api/ is much shorter and gives a short JSON (error) response. I'm going to use that for testing, since the actual data is unimportant

honest tundra
#

do you have acopy of adafruit_esp32spi in the root to override the frozen one? or it's using the frozen .

muted wharf
#

don't want to keep you from what you are doing today

honest tundra
#

Thank you, and also thanks for checking your device. I'll check back in when I can.

muted wharf
#

I will put notes here but ignore them if you can. If you are getting lots of notifications I can hold off

#
ls -l /media/halbert/CIRCUITPY/lib/adafruit_requests.mpy 
-rw-r--r-- 1 halbert halbert 8578 Sep 12 20:34 /media/halbert/CIRCUITPY/lib/adafruit_requests.mpy
#

that is the version I am using adafruit_requests.__version__ is not useful

#

good grief, now it's workign

muted wharf
#

dumping 1.2.2 from the Titano. getting the passthrough to do read_flash was difficult. I had to not use the stub:

esptool.py --port /dev/ttyACM0 --before no_reset --no-stub --baud 115200 read_flash 0 ALL nina-fw-122-from-titano.binesptool.py v4.6.2
#

this is slow

muted wharf
#

esptool.py would only extract 2MB with read_flash, but that was enough. Above 2MB I got CRC errors when it tried to read the flash

#

I loaded that .bin onto the regular PyPortal, and it works with the CMA URL.

#

so next step is to look at some repo diffs