Skip to content

ETIMEDOUT on Metro M4 AirLift Lite #203

Open
@sam-k0

Description

Hello adafruit community,
I am following the guide on how to connect / request here:
https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi/internet-connect-2
I am using CircuitPython Version 9.1.1 and the onboard ESP has firmware ver. 1.2.2

And it works fine, connects to my wifi, gets an ip address, can ping google etc. but times out with this error when trying to execute below source code:

  File "code.py", line 76, in <module>
  File "adafruit_requests.py", line 701, in get
  File "adafruit_requests.py", line 647, in request
  File "adafruit_esp32spi/adafruit_esp32spi_socketpool.py", line 140, in recv
  File "adafruit_esp32spi/adafruit_esp32spi_socketpool.py", line 185, in recv_into
OSError: [Errno 116] ETIMEDOUT

Relevant source:

print("Fetching text from", TEXT_URL)
r = requests.get(TEXT_URL)
print("-" * 40)
print(r.text)
print("-" * 40)
r.close()

I don't understand why it wouldn't work when it clearly can ping google and even poll adafruit for their ip address.
Any help appreciated.

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