I am running a 6 script and they are running at different timings using systemd service and timer. Each script access the same url at least once. When I check the log file of some scripts, they are showing an error like following
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='www.xxxxxxxx.com', port=443): Max retries exceeded with url: /sensorConfig (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x75d165b0>: Failed to establish a new connection: [Errno -2] Name or service not known',))",),)
I replaced the site name with xxxxxxxx since it is confidential. Actually, I was thinking it was due to the internet failure but it was not. Because I can access the site using the browser without problem and also I can ping to the same site without problem.
I am actually sending POST requests using the python3.6 package "requests.post".
I have searched the internet but no one gives a solution.
How can I solve this error?