I'm configured a jenkins job to run a python script that posts to a url for every 10 minutes and check if it is getting correct response using Python requests.
requests.post(url, verify=False, data=payload)
I'm getting no error at all almost everytime.
However, sometimes I'm getting 502 proxy error intermittently. But when I check the url manually at that time, I'm able to access the site with no issues.
What would be the real cause behind this 502 proxy error which is appearing intermittently. and Is there any workaround to avoid this error completely when using requests library?