Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests.exceptions.ConnectionError #53

Open
gonzageraci opened this issue Apr 11, 2021 · 4 comments
Open

requests.exceptions.ConnectionError #53

gonzageraci opened this issue Apr 11, 2021 · 4 comments

Comments

@gonzageraci
Copy link

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
Copy link
Owner

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

@tanujdhiman
Copy link

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
Copy link

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
Copy link

tianshanchuan commented Jun 16, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants