TrainingByPackt/Python-API-Development-Fundamentals

Lesson 1 Exercise 2

malao98 opened this issue · 1 comments

Hi,

I wrote the exact same code as shown in Lesson 1 Exercise 2 but the following error came out when I run the code in Pycharm.

http: error: ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /recipes (Caused by NewConnectionError('<urllib3.connection.HTTPConnection ob
ject at 0x0000020D12BB1520>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')) while doing GET request to URL: http://localhost:5000/recipes

Can someone help me with this problem? Much appreciated

Best regards,
Leong Yi Hong.

Check your code. You probably made a syntax error that slipped past the compiler.