python_blockchain_app icon indicating copy to clipboard operation
python_blockchain_app copied to clipboard

requests.exceptions.ConnectionError

Open gonzageraci opened this issue 3 years ago • 4 comments

I have this error: requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /chain (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000021A10EC5C10>: Failed to establish a new connection: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión'))

what would i do to solve it and run the code? cheers

gonzageraci avatar Apr 11 '21 20:04 gonzageraci

It's likely that port 8000 isn't running any service

satwikkansal avatar May 27 '21 07:05 satwikkansal

Hi @satwikkansal @gonzageraci

  1. Run flask run --port 8000 command in one terminal. This will give you a URL like http://127.0.0.1:8000/
  2. Run python run_app.py command in another terminal. This will give you a URL like http://127.0.0.1:5000/

You must go to 2nd URL then it will not give any exception. Hope you understand and solved your issues. Thanks

tanujdhiman avatar Jun 12 '21 19:06 tanujdhiman

I have this error: requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8000): Max retries exceeded with url: /chain (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000021A10EC5C10>: Failed to establish a new connection: [WinError 10061] No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión'))

what would i do to solve it and run the code? cheers

how did solve this error in visual studio??

AncilaMoideen avatar Jun 16 '22 05:06 AncilaMoideen

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

tianshanchuan avatar Jun 16 '22 05:06 tianshanchuan