I am running two services on my local machine. I want to send data from service 1 to service 2 which is on port 8004. I am doing the following:
r = requests.get('http://127.0.0.1:8004/json_data='+json.dumps(json_data))
I get these 2 errors:
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
I assume that I am sending a large file which is causing the problem. My file is 15mb in size, its a python dictionary which I am sending via a json.dumps()
Any recommendation for overcoming this error ?