<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OSError: [Errno 202] EAI_FAIL]]></title><description><![CDATA[<p dir="auto">Hi<br />
i'm trying to use the urequests module that i found here  : <a href="https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py</a><br />
but i've got an error  :</p>
<p dir="auto"><img src="/assets/uploads/files/1611673683899-eerno-1.jpg" alt="eerno 1.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">In the <a href="http://MAIN.py" target="_blank" rel="noopener noreferrer nofollow">MAIN.py</a> i use a firebase module where all starts</p>
<p dir="auto"><img src="/assets/uploads/files/1611673741634-eerno-0.jpg" alt="eerno 0.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">the <a href="http://FIREBASE.py" target="_blank" rel="noopener noreferrer nofollow">FIREBASE.py</a> file</p>
<p dir="auto"><img src="/assets/uploads/files/1611673764652-eerno-00.jpg" alt="eerno 00.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">the UREQUEST file</p>
<p dir="auto"><img src="/assets/uploads/files/1611673824852-eerno-2.jpg" alt="eerno 2.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1611673847695-eerno-3.jpg" alt="eerno 3.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.pycom.io/topic/6782/oserror-errno-202-eai_fail</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 18:33:42 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/6782.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jan 2021 15:11:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OSError: [Errno 202] EAI_FAIL on Tue, 26 Jan 2021 15:11:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
i'm trying to use the urequests module that i found here  : <a href="https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py" target="_blank" rel="noopener noreferrer nofollow">https://github.com/micropython/micropython-lib/blob/master/urequests/urequests.py</a><br />
but i've got an error  :</p>
<p dir="auto"><img src="/assets/uploads/files/1611673683899-eerno-1.jpg" alt="eerno 1.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">In the <a href="http://MAIN.py" target="_blank" rel="noopener noreferrer nofollow">MAIN.py</a> i use a firebase module where all starts</p>
<p dir="auto"><img src="/assets/uploads/files/1611673741634-eerno-0.jpg" alt="eerno 0.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">the <a href="http://FIREBASE.py" target="_blank" rel="noopener noreferrer nofollow">FIREBASE.py</a> file</p>
<p dir="auto"><img src="/assets/uploads/files/1611673764652-eerno-00.jpg" alt="eerno 00.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto">the UREQUEST file</p>
<p dir="auto"><img src="/assets/uploads/files/1611673824852-eerno-2.jpg" alt="eerno 2.jpg" class="img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1611673847695-eerno-3.jpg" alt="eerno 3.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.pycom.io/post/36753</link><guid isPermaLink="true">https://forum.pycom.io/post/36753</guid><dc:creator><![CDATA[Jean Bikie]]></dc:creator><pubDate>Tue, 26 Jan 2021 15:11:50 GMT</pubDate></item><item><title><![CDATA[Reply to OSError: [Errno 202] EAI_FAIL on Tue, 26 Jan 2021 17:10:55 GMT]]></title><description><![CDATA[<p dir="auto">The EAI_FAIL is related to not being able to resolve the DNS. This means that, for whichever network you are using, the nameserver (like <a href="http://google.com" target="_blank" rel="noopener noreferrer nofollow">google.com</a>) cannot be resolved to an IP address because the DNS server cannot be reached. This is thus related to the network not being connected to the internet, or the DNS server is not set correctly.</p>
<p dir="auto">If you are using a pycom vodafone simcard over a NB-IoT connection, this is an expected result, as the simcards are only meant for connections to pybytes.</p>
<p dir="auto">You can check the DNS server setting through using <code>import socket; socket.dnsserver()</code></p>
<p dir="auto">Let me know<br />
Gijs</p>
]]></description><link>https://forum.pycom.io/post/36759</link><guid isPermaLink="true">https://forum.pycom.io/post/36759</guid><dc:creator><![CDATA[Gijs]]></dc:creator><pubDate>Tue, 26 Jan 2021 17:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to OSError: [Errno 202] EAI_FAIL on Tue, 26 Jan 2021 17:28:39 GMT]]></title><description><![CDATA[<p dir="auto">I don't use pycom vodafone.<br />
i'm working with the wipy3 and i connect it to internet through the wifi.</p>
<p dir="auto">i'm going to check the DNS server<br />
i'll come back</p>
]]></description><link>https://forum.pycom.io/post/36761</link><guid isPermaLink="true">https://forum.pycom.io/post/36761</guid><dc:creator><![CDATA[Jean Bikie]]></dc:creator><pubDate>Tue, 26 Jan 2021 17:28:39 GMT</pubDate></item><item><title><![CDATA[Reply to OSError: [Errno 202] EAI_FAIL on Tue, 26 Jan 2021 20:59:04 GMT]]></title><description><![CDATA[<p dir="auto">I found the problem, it was because i tried the urequest without connected to WIFI but i don't understand because i wrote the connection code on the <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a>  butt it only works when i write the connection code on the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a><br />
it's not normal , i think</p>
<p dir="auto"><img src="/assets/uploads/files/1611694629274-eerno-1.jpg" alt="eerno 1.jpg" class="img-responsive img-markdown" /></p>
]]></description><link>https://forum.pycom.io/post/36771</link><guid isPermaLink="true">https://forum.pycom.io/post/36771</guid><dc:creator><![CDATA[Jean Bikie]]></dc:creator><pubDate>Tue, 26 Jan 2021 20:59:04 GMT</pubDate></item><item><title><![CDATA[Reply to OSError: [Errno 202] EAI_FAIL on Wed, 27 Jan 2021 10:16:04 GMT]]></title><description><![CDATA[<p dir="auto">Do you wait in the <code>boot.py</code> until the connection is established, or simply use <code>wlan.connect(...)</code> and then end the file?<br />
As far as I know, the statement you mention should be true, and the connection you made in the <code>boot.py</code> file should hold.<br />
You should be able to test this though, through using</p>
<pre><code>from network import WLAN
wlan = WLAN()
print(wlan.isconnected())
</code></pre>
<p dir="auto">in the <code>main.py</code> to test if we are connected to a wifi network. If this returns false, there is no connection. This should also hold <code>True</code> if the connection was created in previous 'session' that you ctrl+c'd out of, which is, to my understanding, very similar to the transfer between <code>boot.py</code> and <code>main.py</code>.</p>
]]></description><link>https://forum.pycom.io/post/36787</link><guid isPermaLink="true">https://forum.pycom.io/post/36787</guid><dc:creator><![CDATA[Gijs]]></dc:creator><pubDate>Wed, 27 Jan 2021 10:16:04 GMT</pubDate></item></channel></rss>