Python: Max retries exceeded with url: /x.php (Caused by <class 'socket.gaierror'>)
<p>I have set up a database and php file running on my host and I run a python code that uploads a json file every 5 minutes using the Requests module. After about 6-8 hours, the app crashes and produces this error:</p>

<pre><code>Max retries exceeded with url: /rpitest2.php (Caused by &lt;class 'socket.gaierror'&gt;: [Errno -2] Name or service not known)
</code></pre>

<p>What could be the reason for this?</p>
