adafruit / adafruit/Adafruit_CircuitPython_Requests
ETIMEDOUT on Metro M4 AirLift Lite
- Dominant language
- Python
- Stars
- 49
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
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](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:
```Traceback (most recent call last):
File "code.py", line 76, in
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:
```python
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the timeout with the reported CircuitPython 9.1.1, ESP firmware 1.2.2, Metro M4 AirLift Lite setup and the shown requests.get(TEXT_URL) call. Trace the failure through adafruit_requests.py and adafruit_esp32spi_socketpool.py, then document the cause and verify that the request completes without ETIMEDOUT.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100