W1 Ungraded lab error at opening fastAPIs client: {"detail":"Not Found"}

Got through entire lab fine. But in the last step. When I try to open the fastAPI UI through http://localhost:8000/docs, I get error: {“detail”:“Not Found”}

In the notebook I see this repeating over and over: INFO: - “GET /socket.io/?EIO=3&transport=polling&t=Nbyk87U HTTP/1.1” 404 Not Found

Can you double check if your port 8000 is blocked or redirect ?

I got it working fine for me.

The simple cause might be that you should not stop the server. In the Jupyter notebook, it states that you can stop the server:
This causes the notebook to block (no cells/code can run) until you manually interrupt the kernel. You can do this by clicking on the Kernel tab and then on Interrupt. You can also enter Jupyter’s command mode by pressing the ESC key and tapping the I key twice.

This seems to indicate that you should stop the server to progress in the notebook. And that’s NOT the intent. Keep the server running, when you want to connect with the client a few steps further in the Jupyter Notebook.

1 Like

I used these instructions to open the port, but I’m not sure about the security of doing this: How to open ports in Windows Firewall | Windows Central

that didn’t work. Opening the page gives:

This site can’t be reached

localhost refused to connect.



Oh, I was trying it too soon.