satwikkansal / python_blockchain_app

A fully functional blockchain application implemented in Python from scratch (with tutorial).
822 stars 471 forks source link

requests.exceptions.ConnectionError #53

Open gonzageraci opened 3 years ago

gonzageraci commented 3 years ago

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

satwikkansal commented 3 years ago

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

tanujdhiman commented 3 years ago

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

AncilaMoideen commented 2 years ago

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??

tianshanchuan commented 2 years ago

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