-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socketpool.Socket is missing getaddrinfo #4394
Comments
See RTD:
This is old, not used. This is for native (ESP32-S2) Socket. Apologies if I'm misunderstanding the issue. Family can be AF_INET or AF_INET6, though AF_INET6 is not currently supported (will raise exception). Type can be STREAM, DGRAM, or RAW. STREAM and DGRAM should be fine, I'm unsure about support status for RAW. Proto is currently inferred from Family, and can be IP or IPV6, though again IPV6 is currently unsupported (will raise exception). Addendum: I think I see the issue. Although
|
My MAGTAG date and time app was running OK for months. Recently the script started crashing. Script crashes here with OSError -2: In file adafruit_requests.py, line 536 whereas: where also: proto = 'https:' This is the boot info the ESP32s2 is sending via TX: |
@PaulskPt please open a new issue. I'm not sure your issue is related to this one. |
OK |
@tannewt You know what? I took out the calls to wifi.radio.ping() because all ping efforts into WAN resulted in a timed-out error. Only the ping to the router in the LAN was positive. Because I read in a discussion of issue #3836 that a timed-out ping caused the socket to be closed, I commented-out the block of ping commands. Then the script ran as expected ! Problem solved! Just for the record the latest results: Some defines and print statements I added for debugging purposes: host = io.adafruit.com result : <Response object at 0x3fd8e8f0> |
@tannewt The script ran already uninterrupted from yesterday 19:46 local until this moment in the next morning. |
Documentation includes:
socket.getaddrinfo(host: str, port: int) → Tuple[int, int, int, str, str]
Gets the address information for a hostname and port
Returns the appropriate family, socket type, socket protocol and address information to call socket.socket() and socket.connect() with, as a tuple.
But it has not been implemented on the esp32-s2 port. Just wanted to insert this as a reminder.
The text was updated successfully, but these errors were encountered: