requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection ‘)) in python request.api

  python-3.x, python-requests

import requests

resp = requests.api.post(url,headers=self.headers,data=json.dumps(data))

when running it in jenkins, it is working fine sometimes, but in others it is throwing error

requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))

Source: Python-3x Questions

LEAVE A COMMENT