I was trying to use the home assistant API and I ran into an issue using the homeassistant.local domain in the fetch request. This caused an OSError 0
Retrieving data...Traceback (most recent call last):
File "code.py", line 30, in
File "code.py", line 27, in
File "adafruit_magtag/magtag.py", line 174, in fetch
File "adafruit_portalbase/init.py", line 365, in fetch
File "adafruit_portalbase/network.py", line 523, in fetch_data
File "adafruit_portalbase/network.py", line 442, in fetch
File "adafruit_requests.py", line 595, in get
File "adafruit_requests.py", line 559, in request
File "adafruit_requests.py", line 419, in _get_socket
OSError: 0
The workaround is to use the IP address of the server.
I was trying to use the home assistant API and I ran into an issue using the homeassistant.local domain in the fetch request. This caused an OSError 0
Retrieving data...Traceback (most recent call last):
File "code.py", line 30, in
File "code.py", line 27, in
File "adafruit_magtag/magtag.py", line 174, in fetch
File "adafruit_portalbase/init.py", line 365, in fetch
File "adafruit_portalbase/network.py", line 523, in fetch_data
File "adafruit_portalbase/network.py", line 442, in fetch
File "adafruit_requests.py", line 595, in get
File "adafruit_requests.py", line 559, in request
File "adafruit_requests.py", line 419, in _get_socket
OSError: 0
The workaround is to use the IP address of the server.